SSpSource_SetPosition
You can use theSSpSource_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
TheSSpSource_SetPosition
function sets the position of the sound source specified by theinSourceReference
parameter to the point specified by theinPosition
parameter. TheinPosition
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 theSSpSource_CalcLocalization
function. The default position of a sound source is the origin, the point (0, 0, 0).