Previous Book Contents Book Index Next

Inside Macintosh: Sound /
Chapter 5 - Sound Components / Sound Components Reference
Constants


Legacy Documentclose button

Important: Inside Macintosh: Sound 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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996