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