Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 1 - SoundSprocket / SoundSprocket Reference
SoundSprocket Functions / Creating and Managing Listeners


SSpListener_GetActualVelocity

You can use the SSpListener_GetActualVelocity function to get the world-space velocity of a listener.

OSStatus SSpListener_GetActualVelocity (
SSpListenerReference inListenerReference,
TQ3Vector3D *outVelocity);
inListenerReference
A listener reference.
outVelocity
On exit, the world-space velocity vector of the listener.
function result
A result code.
DESCRIPTION
The SSpListener_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 listener specified by the inListenerReference parameter.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996