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_SetSize

You can use the SSpSource_SetSize function to set the size of a sound source.

OSStatus SSpSource_SetSize (
SSpSourceReference inSourceReference,
float inLength,
float inWidth,
float inHeight);
inSourceReference
A source reference.
inLength
The desired length of the sound source.
inWidth
The desired width of the sound source.
inHeight
The desired height of the sound source.
function result
A result code.
DESCRIPTION
The SSpSource_SetSize function sets the length, width, and height of the sound source specified by the inSourceReference parameter to the values specified by the inLength, inWidth, and inHeight parameters. The length side is determined by the orientation vector, the height side is determined by the up vector, and the width is the remaining side of the box.

The default sides of the sound source box are 0.0 listener units.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996