SSpSource_SetReferenceDistance
You can use theSSpSource_SetReferenceDistance
function 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_SetReferenceDistance
function sets the reference distance of the sound source specified by theinSourceReference
parameter to the value specified by theinReferenceDistance
parameter. The default reference distance is one meter.SPECIAL CONSIDERATIONS
You should use theSSpSource_SetReferenceDistance
function instead of the Sound Manager sound commandsampCmd
orvolumeCmd
to change a sound's volume.