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_GetReferenceDistance

You can use the SSpSource_GetReferenceDistance function to get the reference distance of a sound source.

OSStatus SSpSource_GetReferenceDistance (
SSpSourceReference inSourceReference,
float *outReferenceDistance);
inSourceReference
A source reference.
outReferenceDistance
On exit, the distance, in listener units, from a listener to the point at which a sound source was recorded.
function result
A result code.
DESCRIPTION
The SSpSource_GetReferenceDistance function returns, in the outReferenceDistance parameter, the distance from a listener to the point at which the sound source specified by the inSourceReference parameter was recorded.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996