Table des matières

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.

  • 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.
AK_Fail if the index is invalid, AK_Success otherwise.
See also:
in_uIndex  Index of the pair, [0, GetNumEmitterListenerPairs()[
out_emitterListenerPair  Returned relative source position in spherical coordinates.