Previous Book Contents Book Index Next

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


SSpListener_SetMetersPerUnit

You can use the SSpListener_SetMetersPerUnit function to set the number of meters in one listener unit.

OSStatus SSpListener_SetMetersPerUnit (
SSpListenerReference inListenerReference,
float inMetersPerUnit);
inListenerReference
A listener reference.
inMetersPerUnit
The number of meters in the listener unit of the specified listener.
function result
A result code.
DESCRIPTION
The SSpListener_SetMetersPerUnit function sets the number of meters in the listener unit of the listener specified by the inListenerReference parameter to the value specified by the inMetersPerUnit parameter. For example, to have SoundSprocket interpret all values you pass its high-level functions as feet, you should set the inMetersPerUnit parameter to 0.3048.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996