![]() |
Data Format Flags |
Header: Sound.h |
enum { kNoMixing = 1, kNoSampleRateConversion = 2, kNoSampleSizeConversion = 4, kNoSampleFormatConversion = 8, kNoChannelConversion = 16, kNoDecompression = 32, kNoVolumeConversion = 64, kNoRealtimeProcessing = 128, kScheduledSource = 256, kNonInterleavedBuffer = 512, kNonPagingMixer = 1024, kSoundConverterMixer = 2048, kPagingMixer = 4096, kVMAwareMixer = 8192, kExtendedSoundData = 16384 };
If this bit is set, the Apple Mixer does not mix audio data sources.
If this bit is set, the sound component chain does not perform sample rate conversion (for example, converting 11 kHz data to 22 kHz data).
If this bit is set, the sound component chain does not perform sample size conversion (for example, converting 8-bit data to 16-bit data).
If this bit is set, the sound component chain does not convert between sample formats (for example, converting from twos complement data to offset binary data). Most sound output devices on Macintosh computers accept only 8-bit offset binary data, which is therefore the default type of data produced by the Apple Mixer. If your output device can handle either offset binary or twos complement data, you should set this flag. Note that 16-bit data is always in twos complement format.
If this bit is set, the sound component chain does not convert channels (for example, converting monophonic channels to stereo or stereo channels to monophonic).
If this bit is set, the sound component chain does not decompress audio data. If your output device can decompress data, you should set this flag.
If this bit is set, the sound component chain does not convert volumes.
If this bit is set, the sound component chain does not do any processing at interrupt time.
You can use constants to set or clear flag bits in the outputFlags parameter passed to the OpenMixerSoundComponent function. These flags specify the format of the data your sound output device component expects to receive. See OpenMixerSoundComponent for more information.
Most of these flags are ignored unless the kNoMixing flag is set, because a sound output device component cannot perform data modifications such as sample rate conversion or sample size conversion unless it is also able to mix sound sources.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)