Version

    Other Documentation

menu_open
Wwise SDK 2023.1.2

◆ AddListener()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::AddListener ( AkGameObjectID  in_emitterGameObj,
AkGameObjectID  in_listenerGameObj 
)

Add a single listener to a game object's set of associated listeners. Any listeners that have previously been added or set via AddListener or SetListeners will remain as listeners and in_listenerGameObj will be added as an additional listener. Calling this function will override the default set of listeners and in_emitterGameObj will now reference its own, unique set of listeners.

See also
Parameters
in_emitterGameObjEmitter game object. Must have been previously registered via RegisterGameObj.
in_listenerGameObjListener game object IDs that will be activated for in_emitterGameObj.

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