Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 1 - SoundSprocket / SoundSprocket Reference
SoundSprocket Functions / Creating and Managing 3D Sound Sources


SSpSource_SetPosition

You can use the SSpSource_SetPosition function to set the position of a sound source.

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


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996