版本

menu_open
Wwise SDK 2019.2.15

◆ SetGameObjectOutputBusVolume()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::SetGameObjectOutputBusVolume ( AkGameObjectID  in_emitterObjID,
AkGameObjectID  in_listenerObjID,
AkReal32  in_fControlValue 
)

Sets the Output Bus Volume (direct) to be used for the specified game object. The control value is a number ranging from 0.0f to 1.0f. Output Bus Volumes are stored per listener association, so calling this function will override the default set of listeners. The game object in_emitterObjID will now reference its own set of listeners which will be the same as the old set of listeners, but with the new associated gain. Future changes to the default listener set will not be picked up by this game object unless ResetListenersToDefault() is called.

参见
返回
  • AK_Success when successful
  • AK_InvalidFloatValue if the value specified was NaN or Inf
参数
in_emitterObjID Associated emitter game object ID
in_listenerObjID Associated listener game object ID. Pass AK_INVALID_GAME_OBJECT to set the Output Bus Volume for all connected listeners.
in_fControlValue A multiplier in the range [0.0f:16.0f[ (-96.3dB to +24dB). A value greater than 1.0f will amplify the sound.

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅