Mac OS Sound

| Previous | Chapter Contents | Chapter 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.

New Codecs to Import & Export Samples

Two new codecs have been added to import and export samples. These are in 32 bit and 64 bit floating point formats, and named kFloat32Format and kFloat64Format, respectively. This allows more accurate conversion to other sample sizes or the application of effects--for example, 3D sound localization. These two floating point codecs also support a new selector siSlopeAndIntercept which points to a SoundSlopeAndInterceptRecord structure which can control the conversion process of floating point samples into integer samples. This structure is included in the Sound.h interface file and shown as follows:

struct SoundSlopeAndInterceptRecord {
    Float64 slope;
    Float64 intercept;
    Float64 minClip;
    Float64 maxClip;
};

© 1999 Apple Computer, Inc.

Mac OS Sound

| Previous | Chapter Contents | Chapter 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.