Previous Book Contents Book Index Next

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


SSpListener_GetVelocity

You can use the SSpListener_GetVelocity function to get the velocity of a listener.

OSStatus SSpListener_GetVelocity (
SSpListenerReference inListenerReference,
TQ3Vector3D *outVelocity);
inListenerReference
A listener reference.
outVelocity
On exit, the most recent untransformed velocity vector of the listener.
function result
A result code.
DESCRIPTION
The SSpListener_GetVelocity function returns, in the outVelocity parameter, the most recent untransformed velocity vector of the listener specified by the inListenerReference parameter. The velocity is the velocity set by the most recent call to SSpListener_SetVelocity.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996