Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 1 - SoundSprocket / SoundSprocket Reference
Data Structures


3D Sound Setup Structure

You specify the configuration of the listener's speakers using a 3D sound setup structure. A 3D sound setup structure is defined by the SSpSetupData data type.

typedef struct SSpSetupData {
   UInt32                     speakerKind;
   float                      speakerAngle;
   UInt32                     reserved0;
   UInt32                     reserved1;
} SSpSetupData;
Field Description
speakerKind
The type of speakers being used. See "Speaker Types" (page 1-25) for a description of the values that can occur in this field.
speakerAngle
The angle, in radians, formed by the speakers and the listener. Values for this field can range from 0.0 to p. This field is used only if the value of the speakerKind field is kSSpSpeakerKind_Stereo.
reserved0
Reserved for use by Apple Computer, Inc. You should set this field to 0.
reserved1
Reserved for use by Apple Computer, Inc. You should set this field to 0.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996