版本

menu_open
Wwise SDK 2023.1.2

◆ RegisterBusVolumeCallback()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::RegisterBusVolumeCallback ( AkUniqueID  in_busID,
AkBusCallbackFunc  in_pfnCallback,
void *  in_pCookie = NULL 
)

Registers a callback to allow the game to modify or override the volume to be applied at the output of an audio bus. The callback must be registered once per bus ID. Call with in_pfnCallback = NULL to unregister.

备注: The bus in_busID needs to be a mixing bus.
备注: The callback function will not be called for the Master Audio Bus, since the output of this bus is not a bus, but is instead an Audio Device.
参见
返回
  • AK_Success if successful
  • AK_IDNotFound if the bus is not found
  • AK_NotInitialized if the sound engine is not initialized
  • AK_InsufficientMemory if there is not enough memory to complete the operation
参数
in_busIDBus ID, as obtained by GetIDFromString( bus_name ).
in_pfnCallbackCallback function.
in_pCookieUser cookie.

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅