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.

Audio Data Types

You can use the following constants to define the format of the audio data your sound component is currently producing. You can also define additional data types to denote your own compression schemes. You pass these constants in the format field of a sound component data record.

#define kOffsetBinary                   'raw '
#define kTwosComplement                 'twos'
#define kMACE3Compression               'MAC3'
#define kMACE6Compression               'MAC6'

Constant descriptions

kOffsetBinary

The data is noncompressed samples in offset binary format (that is, values range from 0 to 255).

kTwosComplement

The data is noncompressed samples in two's complement format (that is, values range from -128 to 128).

kMACE3Compression

The data is compressed using MACE 3:1 compression.

kMACE6Compression

The data is compressed using MACE 6:1 compression.

© 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.