Version

    Other Documentation

menu_open
Wwise SDK 2019.2.15

◆ GetEmitterListenerPair()

virtual AKRESULT AK::IAkGameObjectPluginInfo::GetEmitterListenerPair ( AkUInt32  in_uIndex,
AkEmitterListenerPair out_emitterListenerPair 
) const
pure virtual

Retrieve the emitter-listener pair (ray) of the game object at index in_uIndex. Call GetNumEmitterListenerPairs() prior to this function to get the total number of emitter-listener pairs of the game object. The emitter-listener pair is expressed as the game object's position relative to the listener, in spherical coordinates.

Note
  • The distance takes game object and listener scaling factors into account.
  • Returned distance and angles are those of the game object, and do not necessarily correspond to any sound's positioning data.
Returns
AK_Fail if the index is invalid, AK_Success otherwise.
See also
Parameters
in_uIndex Index of the pair, [0, GetNumEmitterListenerPairs()[
out_emitterListenerPair Returned relative source position in spherical coordinates.

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