SSpSource_SetReferenceDistance
You can use theSSpSource_SetReferenceDistancefunction to set the reference distance of a sound source.
OSStatus SSpSource_SetReferenceDistance ( SSpSourceReference inSourceReference, float inReferenceDistance);
inSourceReference- A source reference.
inReferenceDistance- The distance, in listener units, from a listener to the point at which a sound source was recorded.
- function result
- A result code.
DESCRIPTION
TheSSpSource_SetReferenceDistancefunction sets the reference distance of the sound source specified by theinSourceReferenceparameter to the value specified by theinReferenceDistanceparameter. The default reference distance is one meter.SPECIAL CONSIDERATIONS
You should use theSSpSource_SetReferenceDistancefunction instead of the Sound Manager sound commandsampCmdorvolumeCmdto change a sound's volume.