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_GetActualVelocity

You can use the SSpSource_GetActualVelocity function to get the world-space velocity of a sound source.

OSStatus SSpSource_GetActualVelocity (
SSpSourceReference inSourceReference,
TQ3Vector3D *outVelocity);
inSourceReference
A source reference.
outVelocity
On exit, the world-space velocity vector of the sound source.
function result
A result code.
DESCRIPTION
The SSpSource_GetActualVelocity function returns, in the outVelocity parameter, the world-space (that is, the transformed) velocity used in the most recent call to SSpSource_CalcLocalization for the sound source specified by the inSourceReference parameter.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996