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