Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 1 - SoundSprocket / SoundSprocket Reference
SoundSprocket Functions / Creating and Managing Listeners


SSpListener_SetPosition

You can use the SSpListener_SetPosition function to set the position of a listener.

OSStatus SSpListener_SetPosition (
SSpListenerReference inListenerReference,
const TQ3Point3D *inPosition);
inListenerReference
A listener reference.
inPosition
The desired untransformed position of the listener.
function result
A result code.
DESCRIPTION
The SSpListener_SetPosition function sets the position of the listener specified by the inListenerReference parameter to the point specified by the inPosition parameter. The inPosition parameter specifies the untransformed position of the listener (that is, the position of the listener before the listener's transform is applied). The actual position of the listener is calculated at the time you call the SSpSource_CalcLocalization function. The default position of a listener is the origin--the point (0, 0, 0).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996