SSpListener_SetUpVector
You can use theSSpListener_SetUpVectorfunction to set the up vector of a listener.
OSStatus SSpListener_SetUpVector ( SSpListenerReference inListenerReference, const TQ3Vector3D *inUpVector);
inListenerReference- A listener reference.
inUpVector- The desired untransformed up vector of the listener. This up vector should be a unit vector.
- function result
- A result code.
DESCRIPTION
TheSSpListener_SetUpVectorfunction sets the up vector of the listener specified by theinListenerReferenceparameter to the vector specified by theinUpVectorparameter. TheinUpVectorparameter specifies the untransformed up vector of the listener (that is, the up vector of the listener before the listener's transform is applied). The actual up vector of the listener is calculated at the time you call theSSpSource_CalcLocalizationfunction. The default up vector of a listener is the unit y vector (0, 1, 0).
- Note
- When you call
SSpSource_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