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_GetVelocity

You can use the SSpSource_GetVelocity function to get the velocity of a sound source.

OSStatus SSpSource_GetVelocity (
SSpSourceReference inSourceReference,
TQ3Vector3D *outVelocity);
inSourceReference
A source reference.
outVelocity
On exit, the most recent untransformed velocity vector of the sound source.
function result
A result code.
DESCRIPTION
The SSpSource_GetVelocity function returns, in the outVelocity parameter, the most recent untransformed velocity vector of the sound source specified by the inSourceReference parameter. The velocity is the velocity set by the most recent call to SSpSource_SetVelocity.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996