版本
menu

Wwise SDK 2024.1.10

◆ SetListeners()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::SetListeners ( AkGameObjectID  in_emitterGameObj,
const AkGameObjectID in_pListenerGameObjs,
AkUInt32  in_uNumListeners 
)

Sets a game object's associated listeners. All listeners that have previously been added via AddListener or set via SetListeners will be removed and replaced with the listeners in the array in_pListenerGameObjs. Calling this function will override the default set of listeners and in_emitterGameObj will now reference its own, unique set of listeners.

返回
  • AK_Success if successful
  • AK_CommandTooLarge if the number of positions is too large for the command queue. Reduce the number of positions.
参见
参数
in_emitterGameObjEmitter game object. Must have been previously registered via RegisterGameObj.
in_pListenerGameObjsArray of listener game object IDs that will be activated for in_emitterGameObj.
in_uNumListenersLength of array

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅