Version

    Other Documentation

menu_open
Wwise SDK 2021.1.14

◆ 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.

Returns
Always returns AK_Success
See also
Parameters
in_emitterGameObj Emitter game object. Must have been previously registered via RegisterGameObj.
in_pListenerGameObjs Array of listener game object IDs that will be activated for in_emitterGameObj.
in_uNumListeners Length of array

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise