Previous Book Contents Book Index Next

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


Source Modes

A listener's source mode determines the type of filtering that is applied to a source sound. You can use these constants to specify a source mode:

enum {
   kSSpSourceMode_Unfiltered           = 0,
   kSSpSourceMode_Localized            = 1,
   kSSpSourceMode_Ambient              = 2,
   kSSpSourceMode_Binaural             = 3
};
Constant descriptions

kSSpSourceMode_Unfiltered
Unfiltered sounds are not processed by the sound localization filter in any way.
kSSpSourceMode_Localized
The sound is localized (that is, it appears to be emanating from a specific location in space).
kSSpSourceMode_Ambient
The sound is ambient (that is, it appears to come from all directions).
kSSpSourceMode_Binaural
The sound is binaural (that is, it was recorded with a localized effect). It is played exactly as recorded, except that a crosstalk canceller is used when the speakerKind field of a 3D sound setup structure has the value kSSpSpeakerKind_Stereo.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996