SSpSource_SetOrientation
You can use theSSpSource_SetOrientationfunction 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_SetOrientationfunction sets the orientation of the sound source specified by theinSourceReferenceparameter to the orientation specified by theinOrientationparameter. TheinOrientationparameter 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_CalcLocalizationfunction. 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.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help