Inside Macintosh: Sound

| Previous | Chapter contents | Chapter top | Section top | Next |

Legacy Documentclose button

Important: Sound Input Manager is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.

Sound Component Features Flags

You can use the following constants to define features of your sound component. You use some combination of these constants to set bits in the componentFlags field of a component description record, which is contained in a 'thng' resource. These bits represent the kind of data your component can receive as input, the kind of data your component can produce as output, the operations your component can perform, and the performance of your component.

#define k8BitRawIn                          (1 << 0)        /*data flags*/
#define k8BitTwosIn                         (1 << 1)
#define k16BitIn                            (1 << 2)
#define kStereoIn                           (1 << 3)
#define k8BitRawOut                         (1 << 8)
#define k8BitTwosOut                        (1 << 9)
#define k16BitOut                           (1 << 10)
#define kStereoOut                          (1 << 11)
#define kReverse                            (1 << 16)       /*action flags*/
#define kRateConvert                        (1 << 17)
#define kCreateSoundSource                  (1 << 18)
#define kHighQuality                        (1 << 22)       /*performance flags*/
#define kRealTime                           (1 << 23)

Constant descriptions

k8BitRawIn

The component can accept 8 bit offset binary data as input.

k8BitTwosIn

The component can accept 8 bit two's complement data as input.

k16BitIn

The component can accept 16 bit data as input. 16 bit data is always in two's complement format.

kStereoIn

The component can accept stereo data as input.

k8BitRawOut

The component can produce 8 bit offset binary data as output.

k8BitTwosOut

The component can produce 8 bit two's complement data as output.

k16BitOut

The component can produce 16 bit data as output. 16 bit data is always in two's complement format.

kStereoOut

The component can produce stereo data as output.

kReverse

The component can accept reversed audio data.

kRateConvert

The component can convert sample rates.

kCreateSoundSource

The component can create sound sources.

kHighQuality

The component can produce high quality output.

kRealTime

The component can operate in real time.

© 1999 Apple Computer, Inc.

Inside Macintosh: Sound

| Previous | Chapter contents | Chapter top | Section top | Next |

Legacy Documentclose button

Important: Sound Input Manager is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.