Previous Book Contents Book Index Next

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


Virtual Source Structure

You use a virtual source structure to describe a virtual sound source (that is, a reflection of a real sound source). A virtual source structure is defined by the SSpVirtualSourceData data type.

typedef struct SSpVirtualSourceData {
   float                      attenuation;
   SSpLocationData            location;
} SSpVirtualSourceData;
Field Description
attenuation
The amount of attenuation, in decibels (dB), that occurs each time this reflection bounces off a reverberant wall. The value of this field should be less than or equal to 0.0.
location
The current location of the virtual source relative to the listener. See (page 1-28) for a description of the SSpLocationData data structure.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996