Version

menu_open
Wwise SDK 2023.1.3

◆ 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
  • AK_Success if successful
  • AK_CommandTooLarge if the number of positions is too large for the command queue. Reduce the number of positions.
See also
Parameters
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

Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise