SSpListener_SetOrientation
You can use theSSpListener_SetOrientation
function to set the orientation of a listener.
OSStatus SSpListener_SetOrientation ( SSpListenerReference inListenerReference, const TQ3Vector3D *inOrientation);
inListenerReference
- A listener reference.
inOrientation
- The desired untransformed orientation of the listener. This orientation should be a unit vector.
- function result
- A result code.
DESCRIPTION
TheSSpListener_SetOrientation
function sets the orientation of the listener specified by theinListenerReference
parameter to the orientation specified by theinOrientation
parameter. TheinOrientation
parameter specifies the untransformed orientation of the listener (that is, the orientation of the listener before the listener's transform is applied). The actual orientation of the listener is calculated at the time you call theSSpSource_CalcLocalization
function. The default orientation of a listener is the unit x vector (1, 0, 0).SPECIAL CONSIDERATIONS
When you callSSpSource_CalcLocalization
, the listener's orientation and up vectors should not be parallel.