| Framework | CoreAudio/CoreAudio.h |
| Declared in | CoreAudioTypes.h |
This document lists and describes data types and constants used throughout Core Audio. This document also describes a handful of convenience functions for working with these types and constants.
CalculateLPCMFlags
FillOutASBDForLPCM
FillOutAudioTimeStampWithHostTime
FillOutAudioTimeStampWithSampleTime
FillOutAudioTimeStampWithSampleAndHostTime
A macro to get the number of channels from an audio channel layout tag (AudioChannelLayoutTag data type).
#define AudioChannelLayoutTag_GetNumberOfChannels(layoutTag) ((UInt32)((layoutTag) & 0x0000FFFF))
The audio channel layout tag to examine.
The number of channels the tag indicates.
The low 16 bits of an audio channel layout tag gives the number of channels, unless the layout tag is kAudioChannelLayoutTag_UseChannelDescriptions or kAudioChannelLayoutTag_UseChannelBitmap, which specify other ways of defining the layout.
CoreAudioTypes.h A C++ inline function for calculating the value for the audio stream basic description mFormatFlags field for linear PCM data.
#if defined(__cplusplus)
inline UInt32 CalculateLPCMFlags (
UInt32 inValidBitsPerChannel,
UInt32 inTotalBitsPerChannel,
bool inIsFloat,
bool inIsBigEndian,
bool inIsNonInterleaved = false
) {
return
(inIsFloat ? kAudioFormatFlagIsFloat : kAudioFormatFlagIsSignedInteger) |
(inIsBigEndian ? ((UInt32)kAudioFormatFlagIsBigEndian) : 0) |
((!inIsFloat && (inValidBitsPerChannel == inTotalBitsPerChannel)) ?
kAudioFormatFlagIsPacked : kAudioFormatFlagIsAlignedHigh) |
(inIsNonInterleaved ? ((UInt32)kAudioFormatFlagIsNonInterleaved) : 0);
}
#endif
The number of valid bits in each sample.
The total number of bits in each sample.
Use true if the samples are represented with floating point numbers.
Use true if the samples are big endian.
Use true if the samples are noninterleaved.
A UInt32 value containing the calculated format flags.
This function does not support specifying sample formats that are either unsigned integer or low-aligned.
CoreAudioTypes.hA C++ inline function for filling out an AudioStreamBasicDescription to describe linear PCM data.
#if defined(__cplusplus) inline void FillOutASBDForLPCM ( AudioStreamBasicDescription &outASBD, Float64 inSampleRate, UInt32 inChannelsPerFrame, UInt32 inValidBitsPerChannel, UInt32 inTotalBitsPerChannel, bool inIsFloat, bool inIsBigEndian, bool inIsNonInterleaved = false ) { outASBD.mSampleRate = inSampleRate; outASBD.mFormatID = kAudioFormatLinearPCM; outASBD.mFormatFlags = CalculateLPCMFlags ( inValidBitsPerChannel, inTotalBitsPerChannel, inIsFloat, inIsBigEndian, inIsNonInterleaved ); outASBD.mBytesPerPacket = (inIsNonInterleaved ? 1 : inChannelsPerFrame) * (inTotalBitsPerChannel/8); outASBD.mFramesPerPacket = 1; outASBD.mBytesPerFrame = (inIsNonInterleaved ? 1 : inChannelsPerFrame) * (inTotalBitsPerChannel/8); outASBD.mChannelsPerFrame = inChannelsPerFrame; outASBD.mBitsPerChannel = inValidBitsPerChannel; } #endif
On output, a filled-out AudioStreamBasicDescription structure.
The number of sample frames per second of the data in the stream.
The number of channels in each frame of data.
The number of valid bits in each sample.
The total number of bits in each sample.
Use true if the samples are represented as floating-point numbers.
Use true if the samples are big endian.
Use true if the samples are noninterleaved.
This function does not support specifying sample formats that are either unsigned integer or low-aligned.
CoreAudioTypes.hA C++ inline function for filling out an AudioTimeStamp structure with a host time.
#if defined(__cplusplus) inline void FillOutAudioTimeStampWithHostTime ( AudioTimeStamp &outATS, UInt64 inHostTime ) { outATS.mSampleTime = 0; outATS.mHostTime = inHostTime; outATS.mRateScalar = 0; outATS.mWordClockTime = 0; memset (&outATS.mSMPTETime, 0, sizeof (SMPTETime)); outATS.mFlags = kAudioTimeStampHostTimeValid; } #endif
On output, a filled-out AudioTimeStamp structure.
The host time to assign to the audio timestamp.
CoreAudioTypes.hA C++ inline function for filling out an AudioTimeStamp structure with a sample time and a host time.
#if defined(__cplusplus) inline void FillOutAudioTimeStampWithSampleAndHostTime ( AudioTimeStamp &outATS, Float64 inSampleTime, UInt64 inHostTime ) { outATS.mSampleTime = inSampleTime; outATS.mHostTime = inHostTime; outATS.mRateScalar = 0; outATS.mWordClockTime = 0; memset (&outATS.mSMPTETime, 0, sizeof (SMPTETime)); outATS.mFlags = kAudioTimeStampSampleTimeValid | kAudioTimeStampHostTimeValid; } #endif
On output, a filled-out AudioTimeStamp structure.
The sample time to assign to the audio timestamp.
The host time to assign to the audio timestamp.
CoreAudioTypes.hA C++ inline function for filling out an AudioTimeStamp structure with a sample time.
#if defined(__cplusplus) inline void FillOutAudioTimeStampWithSampleTime ( AudioTimeStamp &outATS, Float64 inSampleTime ) { outATS.mSampleTime = inSampleTime; outATS.mHostTime = 0; outATS.mRateScalar = 0; outATS.mWordClockTime = 0; memset (&outATS.mSMPTETime, 0, sizeof (SMPTETime)); outATS.mFlags = kAudioTimeStampSampleTimeValid; } #endif
On output, a filled-out AudioTimeStamp structure.
The sample time to assign to the audio timestamp.
CoreAudioTypes.hA C++ inline function for checking if an AudioFormatBasicDescription structure indicates native-endian linear PCM data.
#if defined(__cplusplus) inline bool IsAudioFormatNativeEndian ( const AudioStreamBasicDescription &f ) { return (f.mFormatID == kAudioFormatLinearPCM) && ((f.mFormatFlags & kAudioFormatFlagIsBigEndian) == kAudioFormatFlagsNativeEndian); } #endif
The AudioFormatBasicDescription structure you want to examine.
A Boolean value indicating whether the AudioFormatBasicDescription structure specifies native endian linear PCM data, true if the data is linear PCM and is native endian.
CoreAudioTypes.hA macro for checking if an AudioFormatBasicDescription structure indicates native endian linear PCM data.
#define TestAudioFormatNativeEndian (f) ( (f.mFormatID == kAudioFormatLinearPCM) && ((f.mFormatFlags & kAudioFormatFlagIsBigEndian) == kAudioFormatFlagsNativeEndian) )
The AudioFormatBasicDescription structure you want to examine.
True if the data is linear PCM and is native endian.
CoreAudioTypes.hHolds a buffer of audio data.
struct AudioBuffer {
UInt32 mNumberChannels;
UInt32 mDataByteSize;
void* mData;
};
typedef struct AudioBuffer AudioBuffer;
mNumberChannelsThe number of interleaved channels in the buffer.
mDataByteSizeThe number of bytes in the buffer pointed at by mData.
mDataA pointer to the buffer of audio data.
CoreAudioTypes.hHolds a variable length array of AudioBuffer structures.
struct AudioBufferList {
UInt32 mNumberBuffers;
AudioBuffer mBuffers[1];
};
typedef struct AudioBufferList AudioBufferList;
mNumberBuffersThe number of AudioBuffer structures in the mBuffers array.
mBuffersA variable length array of AudioBuffer structures.
CoreAudioTypes.hDescribes an audio data channel.
struct AudioChannelDescription {
AudioChannelLabel mChannelLabel;
UInt32 mChannelFlags;
Float32 mCoordinates[3];
};
typedef struct AudioChannelDescription AudioChannelDescription;
mChannelLabelThe AudioChannelLabel structure that describes the channel.
mChannelFlagsFlags that control the interpretation of mCoordinates. See “Channel Coordinate Flags” for possible values.
mCoordinatesAn ordered triple that specifies a precise speaker location. See “Channel Coordinate Index Constants” for the interpretation of the items in the array.
CoreAudioTypes.hIdentifies how an audio data channel is to be used.
typedef UInt32 AudioChannelLabel;
This data type is used for the mChannelLabel field of the AudioChannelDescription structure. See “Audio Channel Label Constants” for possible values.
CoreAudioTypes.hSpecifies a channel layout in a file or in hardware.
struct AudioChannelLayout {
AudioChannelLayoutTag mChannelLayoutTag;
UInt32 mChannelBitmap;
UInt32 mNumberChannelDescriptions;
AudioChannelDescription mChannelDescriptions[1];
};
typedef struct AudioChannelLayout AudioChannelLayout;
mChannelLayoutTagThe AudioChannelLayoutTag value that indicates the layout. See “Audio Channel Layout Tags” for possible values.
mChannelBitmapIf mChannelLayoutTag is set to kAudioChannelLayoutTag_UseChannelBitmap, this field is the channel use bitmap.
mNumberChannelDescriptionsThe number of items in the mChannelDescriptions array.
mChannelDescriptionsA variable length array of mNumberChannelDescription elements that describes a layout. If the mChannelLayoutTag field is set to kAudioChannelLayoutTag_UseChannelDescriptions, use this field to describe the layout.
CoreAudioTypes.hIdentifies a previously-defined channel layout.
typedef UInt32 AudioChannelLayoutTag;
This data type is used for the mChannelLayoutTag field of the AudioChannelLayout structure. See “Audio Channel Layout Tags” for possible values.
CoreAudioTypes.hDescribes an installed codec.
struct AudioClassDescription {
OSType mType;
OSType mSubType;
OSType mManufacturer;
};
typedef struct AudioClassDescription AudioClassDescription;
mTypeThe four character code for the codec type. Defined by the codec manufacturer.
mSubTypeThe four character code for the codec subtype. Defined by the codec manufacturer.
mManufacturerThe four character code for the codec manufacturer. This must be a unique code registered with Apple.
CoreAudioTypes.hThe canonical audio data sample type for input and output.
typedef SInt16 AudioSampleType;
The canonical audio sample type for input and output in iPhone OS is linear PCM with 16-bit integer samples.
CoreAudioTypes.hThe canonical audio data sample type for audio processing.
typedef SInt32 AudioUnitSampleType; #define kAudioUnitSampleFractionBits 24
The canonical audio sample type for audio units and other audio processing in iPhone OS is noninterleaved linear PCM with 8.24-bit fixed-point samples.
CoreAudioTypes.hA format description for a stream of audio data.
struct AudioStreamBasicDescription {
Float64 mSampleRate;
UInt32 mFormatID;
UInt32 mFormatFlags;
UInt32 mBytesPerPacket;
UInt32 mFramesPerPacket;
UInt32 mBytesPerFrame;
UInt32 mChannelsPerFrame;
UInt32 mBitsPerChannel;
UInt32 mReserved;
};
typedef struct AudioStreamBasicDescription AudioStreamBasicDescription;
mSampleRateThe number of sample frames per second of the data in the stream. For compressed formats, this field indicates the number of sample frames per second of decompressed data. You can combine this value with the frames per packet to determine the amount of time represented by a packet. This value must be nonzero, except when this structure is used in a listing of supported formats (see “AudioStreamBasicDescription Constant”).
mFormatIDA four character code indicating the general kind of data in the stream. See “Audio Data Format Identifiers”. This value must be nonzero.
mFormatFlagsFlags specific to each format, if any. My be set to 0 to indicate no format flags. See “Audio Data Format Identifiers” for the types of flags used with each data type.
mBytesPerPacketThe number of bytes in a packet of data. For formats with a variable packet size, this field is set to 0. In that case, the size of each packet is specified by an AudioStreamPacketDescription structure.
mFramesPerPacketThe number of sample frames in each packet of data. For compressed formats, this field indicates the number of frames encoded in each packet. For formats with a variable number of frames per packet, this field is set to 0 and the packet is described by an AudioStreamPacketDescription structure.
mBytesPerFrameThe number of bytes in a single sample frame of data. This field is set to 0 if the data format (for instance any compressed format) does not contain separate samples for each channel.
mChannelsPerFrameThe number of channels in each frame of data. This value must be nonzero.
mBitsPerChannelThe number of bits of sample data for each channel in a frame of data. This field is set to 0 if the data format (for instance any compressed format) does not contain separate samples for each channel.
mReservedPads the structure out to force an even 8-byte alignment.
This structure is sufficient to describe any constant bit rate format that has channels that are the same size. For variable bit rate data and for constant bit rate data where the channels have unequal sizes, each packet must additionally be described by an AudioStreamPacketDescription structure. In all fields, a value of 0 indicates that the field is either unknown, not applicable, or otherwise is inappropriate for the format and should be ignored.
For the purposes of this data structure, the following definitions apply:
A sample is one data value (that is, one number) for one channel of digitized audio data.
A frame is a set of samples that includes one sample for each channel. The samples in a frame are intended to be played together (that is, simultaneously). (Note that this definition might be different from the use of the term frame by codecs, video files, and audio or video processing applications.) In non-interleaved audio, the per-frame fields in the structure apply to one channel. In interleaved audio, the per-frame fields apply to the set of n channels.
A packet is the smallest, indivisible block of data. In uncompressed audio, each packet contains exactly one frame. In compressed audio, the number of frames in a packet depends on the encoding. For example, an AAC packet contains 1024 sample frames. In some formats, the number of frames per packet varies.
The sample rate is the number of complete frames of samples per second of noncompressed or decompressed data.
Typically, the fields of an AudioStreamBasicDescription structure describe the complete layout of the sample data in data buffers represented by AudioBuffer structures that are contained in an AudioBufferList structure.
When an AudioStreamBasicDescription structure has the kAudioFormatFlagIsNonInterleaved flag set, however, the AudioBufferList structure is used in a different way. In this case, each AudioBuffer structure in the list contains a single (mono) channel of audio data and the AudioStreamBasicDescription structure fields describe the format of one AudioBuffer structure. The exception to this rule is the AudioStreamBasicDescription structure’s mChannelsPerFrame field, which indicates the total number of AudioBuffer structures that are contained in the AudioBufferList. This data format is used primarily by audio units and audio converters. It is not used by audio hardware.
CoreAudioTypes.hDescribes one packet in a buffer of audio data where the sizes of the packets differ or where there is non-audio data between audio packets.
struct AudioStreamPacketDescription {
SInt64 mStartOffset;
UInt32 mVariableFramesInPacket;
UInt32 mDataByteSize;
};
typedef struct AudioStreamPacketDescription AudioStreamPacketDescription;
mStartOffsetThe number of bytes from the start of the buffer to the beginning of the packet. For example, if the data buffer contains 5 bytes of data, with one byte per packet, then mStartOffset for the last packet is 4 (that is, there are 4 bytes in the buffer before the start of the last packet.
mVariableFramesInPacketThe number of sample frames of data in the packet. For formats with a constant number of frames per packet, this field is set to 0.
mDataByteSizeThe number of bytes in the packet.
For data formats where the packet size is not constant, such as variable bit rate data and data where the channels have unequal sizes, this structure is used to supplement the information in the AudioStreamBasicDescription structure.
CoreAudioTypes.hHolds multiple representations of a time stamp.
struct AudioTimeStamp {
Float64 mSampleTime;
UInt64 mHostTime;
Float64 mRateScalar;
UInt64 mWordClockTime;
SMPTETime mSMPTETime;
UInt32 mFlags;
UInt32 mReserved;
};
typedef struct AudioTimeStamp AudioTimeStamp;
mSampleTimeThe absolute sample frame time.
mHostTimeThe host machine's time base (see CoreAudio/HostTime.h).
mRateScalarThe ratio of actual host ticks per sample frame to the nominal host ticks per sample frame.
mWordClockTimeThe word clock time.
mSMPTETimeThe SMPTE time (see SMPTETime).
mFlagsA set of flags indicating which representations of the time are valid; see “Audio Time Stamp Flags” and “Audio Time Stamp Flag Combination Constant”.
mReservedPads the structure out to force an even 8-byte alignment.
CoreAudioTypes.hHolds a pair of numbers that represent a continuous range of values.
struct AudioValueRange {
Float64 mMinimum;
Float64 mMaximum;
};
typedef struct AudioValueRange AudioValueRange;
mMinimumThe minimum value.
mMaximumThe maximum value.
CoreAudioTypes.hHolds buffers used in translation operations.
struct AudioValueTranslation {
void* mInputData;
UInt32 mInputDataSize;
void* mOutputData;
UInt32 mOutputDataSize;
};
typedef struct AudioValueTranslation AudioValueTranslation;
mInputDataThe buffer containing the data to be translated.
mInputDataSizeThe number of bytes in the buffer pointed at by mInputData.
mOutputDataThe buffer to hold the result of the translation.
mOutputDataSizeThe number of bytes in the buffer pointed at by mOutputData.
CoreAudioTypes.hSpecifies a time stamp as one of the SMPTE time types.
struct SMPTETime {
SInt16 mSubframes;
SInt16 mSubframeDivisor;
UInt32 mCounter;
UInt32 mType;
UInt32 mFlags;
SInt16 mHours;
SInt16 mMinutes;
SInt16 mSeconds;
SInt16 mFrames;
};
typedef struct SMPTETime SMPTETime;
mSubframesA subframe offset to the HH:MM:SS:FF time. You can use this field to position a time marker somewhere within the time span represented by a video frame, if necessary.
mSubframeDivisorThe number of subframes per video frame (typically 80).
mCounterThe total number of messages received. It takes 8 messages to carry a full SMPTE time code.
mTypeA SMPTE time type constant indicating the kind of SMPTE time used (see “SMPTE Timecode Type Constants”).
mFlagsA set of flags that indicate the SMPTE state (see “SMPTE State Flags”).
mHoursThe value of the hours portion of the SMPTE time.
mMinutesThe value of the minutes portion of the SMPTE time.
mSecondsThe value of the seconds portion of the SMPTE time.
mFramesThe value of the frames portion of the SMPTE time.
SMPTE (Society of Motion Picture and Television Engineers, pronounced “SIMPtee”) times are used to correlate a point in an audio stream with an external event. For example, a SMPTE time can be used to correlate a sound in an audio file with a video frame in a movie file.
Note that the frames referred to by this structure are video frames, where a video frame is a single complete image. (Compare with the definition of audio frames in the discussion for AudioStreamBasicDescription.)
A complete SMPTE time description takes 80 bits, including 32 user bits that contain vendor-specific information. The actual time-code portion of the SMPTE time description is normally sent in several messages, each message containing a portion of the time code. (The user bits are sent in a separate message.) Typically, the SMPTE time description is divided up into 8 1-byte messages, with the first nibble of each message specifying which portion of the time code is contained in the message and the second nibble containing the time information. Four such messages are normally sent with each video frame.
Video data contains somewhere from 24 to 60 frames per second (as specified by the SMPTE time type—see “SMPTE Timecode Type Constants”) and each video frame has an associated SMPTE time. SMPTE time is based on a 24-hour clock. Each frame’s SMPTE time consists of an hour, minute, and second value, plus the number of the frame within the second. Because audio data is sampled at a much higher rate (MP3 data is sampled at over 100,000 bits per second, for example), it is frequently desirable to correlate the audio data with a time within the persistence period of a single video frame. For this reason, the time period during which a single video frame is displayed is subdivided into subframes (typically 80 or 100 subframes per frame, as specified by the mSubFrameDivisor field). The mSubFrames field specifies the number of subframes into the video frame represented by this time structure.
CoreAudioTypes.hA constant for use with the AudioStreamBasicDescription structure.
enum {
kAudioStreamAnyRate = 0
};
kAudioStreamAnyRateThe format can use any sample rate. Note that this constant can only appear in listings of supported formats. It can never be used as part of the description of a current format.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
Four-character code identifiers for audio data formats, used in the AudioStreamBasicDescription structure.
enum {
kAudioFormatLinearPCM = 'lpcm',
kAudioFormatAC3 = 'ac-3',
kAudioFormat60958AC3 = 'cac3',
kAudioFormatAppleIMA4 = 'ima4',
kAudioFormatMPEG4AAC = 'aac ',
kAudioFormatMPEG4CELP = 'celp',
kAudioFormatMPEG4HVXC = 'hvxc',
kAudioFormatMPEG4TwinVQ = 'twvq',
kAudioFormatMACE3 = 'MAC3',
kAudioFormatMACE6 = 'MAC6',
kAudioFormatULaw = 'ulaw',
kAudioFormatALaw = 'alaw',
kAudioFormatQDesign = 'QDMC',
kAudioFormatQDesign2 = 'QDM2',
kAudioFormatQUALCOMM = 'Qclp',
kAudioFormatMPEGLayer1 = '.mp1',
kAudioFormatMPEGLayer2 = '.mp2',
kAudioFormatMPEGLayer3 = '.mp3',
kAudioFormatTimeCode = 'time',
kAudioFormatMIDIStream = 'midi',
kAudioFormatParameterValueStream = 'apvs',
kAudioFormatAppleLossless = 'alac'
kAudioFormatMPEG4AAC_HE = 'aach',
kAudioFormatMPEG4AAC_LD = 'aacl',
kAudioFormatMPEG4AAC_HE_V2 = 'aacp',
kAudioFormatMPEG4AAC_Spatial = 'aacs',
kAudioFormatAMR = 'samr',
kAudioFormatAudible = 'AUDB',
kAudioFormatiLBC = 'ilbc',
kAudioFormatDVIIntelIMA = 0x6D730011,
kAudioFormatMicrosoftGSM = 0x6D730031,
kAudioFormatAES3 = 'aes3'
};
kAudioFormatLinearPCMA key that specifies linear PCM, a noncompressed audio data format with one frame per packet. Uses the linear PCM format flags in “AudioStreamBasicDescription Flags”.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatAC3A key that specifies an AC-3 codec. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormat60958AC3A key that specifies an AC-3 codec that provides data packaged for transport over an IEC 60958 compliant digital audio interface. Uses the standard format flags in “AudioStreamBasicDescription Flags”.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatAppleIMA4A key that specifies Apple’s implementation of the IMA 4:1 ADPCM codec. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEG4AACA key that specifies an MPEG-4 AAC codec. The flags field contains the MPEG-4 audio object type constant listed in “MPEG-4 Audio Object Type Constants” indicating the specific kind of data.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEG4CELPA key that specifies an MPEG-4 CELP codec. The flags field contains the MPEG-4 audio object type constant listed in “MPEG-4 Audio Object Type Constants” indicating the specific kind of data.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEG4HVXCA key that specifies an MPEG-4 HVXC codec. The flags field contains the MPEG-4 audio object type constant listed in “MPEG-4 Audio Object Type Constants” indicating the specific kind of data.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEG4TwinVQA key that specifies an MPEG-4 TwinVQ codec. The flags field contains the MPEG-4 audio object type constant listed in “MPEG-4 Audio Object Type Constants” indicating the specific kind of data.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMACE3MACE 3:1. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMACE6MACE 6:1. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatULawμLaw 2:1. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatALawaLaw 2:1. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatQDesignQDesign music. Uses no flags
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatQDesign2QDesign2 music. Uses no flags
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatQUALCOMMQUALCOMM PureVoice. Uses no flags
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEGLayer1MPEG-1/2, Layer 1 audio. Uses no flags
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEGLayer2MPEG-1/2, Layer 2 audio. Uses no flags
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEGLayer3MPEG-1/2, Layer 3 audio. Uses no flags
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatTimeCodeA stream of IOAudioTimeStamp structures. Uses the IOAudioTimeStamp flags (see “Audio Time Stamp Flags” and “Audio Time Stamp Flag Combination Constant”).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMIDIStreamA stream of MIDIPacketList structures where the time stamps in the MIDIPacket structures are sample offsets in the stream. The mSampleRate field in the AudioStreamBasicDescription structure is used to describe how time is passed in this kind of stream and an audio unit that receives or generates this stream can use this sample rate together with the number of frames it is rendering and the sample offsets within the MIDIPacketList to define the time for any MIDI event within this list. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatParameterValueStreamA "side-chain" of Float32 data that can be fed or generated by an audio unit and that is used to send a high density of parameter value control information. An audio unit typically runs a parameter value stream at either the sample rate of the audio unit’s audio data, or some integer quotient of this (say a half or a third of the sample rate of the audio). The mSampleRate field in the AudioStreamBasicDescription structure describes this relationship. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatAppleLosslessApple Lossless. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEG4AAC_HEMPEG-4 High Efficiency AAC audio object. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEG4AAC_LDMPEG-4 AAC Low Delay audio object. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEG4AAC_HE_V2MPEG-4 High Efficiency AAC Version 2 audio object. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMPEG4AAC_SpatialMPEG-4 Spatial Audio audio object. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatAMRThe AMR (Adaptive Multi-Rate) narrow band speech codec.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatAudibleThe codec used for Audible, Inc. audio books. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatiLBCThe iLBC (internet Low Bitrate Codec) narrow band speech codec. Uses no flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatDVIIntelIMADVI/Intel IMA ADPCM - ACM code 17.
Available in iPhone OS 3.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatMicrosoftGSMMicrosoft GSM 6.10 - ACM code 49.
Available in iPhone OS 3.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatAES3The format defined by the AES3-2003 standard. Adopted into MXF and MPEG-2 containers and SDTI transport streams with SMPTE specs 302M-2002 and 331M-2000. Uses no flags.
Available in iPhone OS 3.0 and later.
Declared in CoreAudioTypes.h.
Use these identifiers to test for the presence of audio codecs on a system. If a given codec is present, you can use its identifier to specify that codec for data encoding or decoding, according to the capabilities of the codec. For more information, see Core Audio Overview.
Standard flags for use in the mFormatFlags field of the AudioStreamBasicDescription structure.
enum {
kAudioFormatFlagIsFloat = (1 << 0), // 0x1
kAudioFormatFlagIsBigEndian = (1 << 1), // 0x2
kAudioFormatFlagIsSignedInteger = (1 << 2), // 0x4
kAudioFormatFlagIsPacked = (1 << 3), // 0x8
kAudioFormatFlagIsAlignedHigh = (1 << 4), // 0x10
kAudioFormatFlagIsNonInterleaved = (1 << 5), // 0x20
kAudioFormatFlagIsNonMixable = (1 << 6), // 0x40
kAudioFormatFlagsAreAllClear = (1 << 31),
kLinearPCMFormatFlagIsFloat = kAudioFormatFlagIsFloat,
kLinearPCMFormatFlagIsBigEndian = kAudioFormatFlagIsBigEndian,
kLinearPCMFormatFlagIsSignedInteger = kAudioFormatFlagIsSignedInteger,
kLinearPCMFormatFlagIsPacked = kAudioFormatFlagIsPacked,
kLinearPCMFormatFlagIsAlignedHigh = kAudioFormatFlagIsAlignedHigh,
kLinearPCMFormatFlagIsNonInterleaved = kAudioFormatFlagIsNonInterleaved,
kLinearPCMFormatFlagIsNonMixable = kAudioFormatFlagIsNonMixable,
kLinearPCMFormatFlagsSampleFractionShift = 7,
kLinearPCMFormatFlagsSampleFractionMask =
(0x3F << kLinearPCMFormatFlagsSampleFractionShift),
kLinearPCMFormatFlagsAreAllClear = kAudioFormatFlagsAreAllClear,
kAppleLosslessFormatFlag_16BitSourceData = 1,
kAppleLosslessFormatFlag_20BitSourceData = 2,
kAppleLosslessFormatFlag_24BitSourceData = 3,
kAppleLosslessFormatFlag_32BitSourceData = 4
};
kAudioFormatFlagIsFloatSet for floating point, clear for integer.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatFlagIsBigEndianSet for big endian, clear for little endian.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatFlagIsSignedIntegerSet for signed integer, clear for unsigned integer. This is only valid if kAudioFormatFlagIsFloat is clear.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatFlagIsPackedSet if the sample bits occupy the entire available bits for the channel, clear if they are high- or low-aligned within the channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatFlagIsAlignedHighSet if the sample bits are placed into the high bits of the channel, clear for low bit placement. This is only valid if kAudioFormatFlagIsPacked is clear.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatFlagIsNonInterleavedSet if the samples for each channel are located contiguously and the channels are laid out end to end, clear if the samples for each frame are laid out contiguously and the frames laid out end to end. This flag affects the use of the AudioStreamBasicDescription and AudioBufferList structures; see the discussion of the AudioStreamBasicDescription structure for details.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatFlagIsNonMixableSet to indicate when a format is nonmixable. Note that this flag is only used when interacting with the HAL's stream format information. It is not a valid flag for any other use.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kLinearPCMFormatFlagsSampleFractionShiftThe linear PCM flags contain a 6-bit bitfield indicating that an integer format is to be interpreted as fixed point. The value indicates the number of bits are used to represent the fractional portion of each sample value. This constant indicates the bit position (counting from the right) of the bitfield in mFormatFlags field.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kLinearPCMFormatFlagsSampleFractionMask<number_of_fractional_bits> = (mFormatFlags & kLinearPCMFormatFlagsSampleFractionMask) >> kLinearPCMFormatFlagsSampleFractionShift
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatFlagsAreAllClearSet to indicate all the flags are clear. You must use this constant instead of 0, because a 0 in the mFormatFlags field of the AudioStreamBasicDescription structure indicates that there are no format flags.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kLinearPCMFormatFlagIsFloatSynonym for kAudioFormatFlagIsFloat.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kLinearPCMFormatFlagIsBigEndianSynonym for kAudioFormatFlagIsBigEndian.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kLinearPCMFormatFlagIsSignedIntegerSynonym for kAudioFormatFlagIsSignedInteger.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kLinearPCMFormatFlagIsPackedSynonym for kAudioFormatFlagIsPacked.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kLinearPCMFormatFlagIsAlignedHighSynonym for kAudioFormatFlagIsAlignedHigh.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kLinearPCMFormatFlagIsNonInterleavedSynonym for kAudioFormatFlagIsNonInterleaved.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kLinearPCMFormatFlagIsNonMixableSynonym for kAudioFormatFlagIsNonMixable.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kLinearPCMFormatFlagsAreAllClearSynonym for kAudioFormatFlagsAreAllClear.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAppleLosslessFormatFlag_16BitSourceDataThis flag is set for Apple Lossless data that was sourced from 16 bit native endian signed integer data.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAppleLosslessFormatFlag_20BitSourceDataSet for Apple Lossless data that was sourced from 20 bit native endian signed integer data aligned high in 24 bits.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAppleLosslessFormatFlag_24BitSourceDataSet for Apple Lossless data that was sourced from 24 bit native endian signed integer data.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAppleLosslessFormatFlag_32BitSourceDataSet for Apple Lossless data that was sourced from 32 bit native endian signed integer data.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
Commonly used combinations of data format flags for the AudioStreamBasicDescription structure.
enum {
#if TARGET_RT_BIG_ENDIAN
kAudioFormatFlagsNativeEndian = kAudioFormatFlagIsBigEndian,
#else
kAudioFormatFlagsNativeEndian = 0,
#endif
#if !CA_PREFER_FIXED_POINT
kAudioFormatFlagsCanonical = kAudioFormatFlagIsFloat |
kAudioFormatFlagsNativeEndian |
kAudioFormatFlagIsPacked,
kAudioFormatFlagsAudioUnitCanonical = kAudioFormatFlagIsFloat |
kAudioFormatFlagsNativeEndian |
kAudioFormatFlagIsPacked |
kAudioFormatFlagIsNonInterleaved,
#else
kAudioFormatFlagsCanonical = kAudioFormatFlagIsSignedInteger |
kAudioFormatFlagsNativeEndian |
kAudioFormatFlagIsPacked,
kAudioFormatFlagsAudioUnitCanonical = kAudioFormatFlagIsSignedInteger |
kAudioFormatFlagsNativeEndian |
kAudioFormatFlagIsPacked |
kAudioFormatFlagIsNonInterleaved |
(kAudioUnitSampleFractionBits <<
kLinearPCMFormatFlagsSampleFractionShift),
#endif
kAudioFormatFlagsNativeFloatPacked = kAudioFormatFlagIsFloat |
kAudioFormatFlagsNativeEndian |
kAudioFormatFlagIsPacked
};
kAudioFormatFlagsNativeEndianDefined to set or clear kAudioFormatFlagIsBigEndian depending on the endianness of the processor at build time.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatFlagsCanonicalThe set of flags for the canonical input-output audio sample type, which match the AudioSampleType type.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatFlagsAudioUnitCanonicalThe flags for the canonical audio unit and processing sample type, which match the AudioUnitSampleType type.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioFormatFlagsNativeFloatPackedThe flags for the canonical format of fully packed, native endian floating point data.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
Fixed-point formats are preferred in iPhone OS, while floating-point formats are preferred in Mac OS X.
Used in the mFormatFlags field of an AudioStreamBasicDescription structure that describes an MPEG-4 audio stream to specify the type of MPEG-4 audio data. (Deprecated. Deprecated in Mac OS X v10.5.)
enum {
kMPEG4Object_AAC_Main = 1,
kMPEG4Object_AAC_LC = 2,
kMPEG4Object_AAC_SSR = 3,
kMPEG4Object_AAC_LTP = 4,
kMPEG4Object_AAC_SBR = 5,
kMPEG4Object_AAC_Scalable = 6,
kMPEG4Object_TwinVQ = 7,
kMPEG4Object_CELP = 8,
kMPEG4Object_HVXC = 9
};
kMPEG4Object_AAC_MainAdvanced audio coding; the basic MPEG-4 technology.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kMPEG4Object_AAC_LCLossless coding; provides compression with no loss of quality.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kMPEG4Object_AAC_SSRScalable sampling rate; provides different sampling frequencies for different targets.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kMPEG4Object_AAC_LTPLong term prediction; reduces redundancy in a coded signal.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kMPEG4Object_AAC_SBRSpectral band replication; reconstructs high-frequency content from lower frequencies and side information.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kMPEG4Object_AAC_ScalableScalable lossless coding.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kMPEG4Object_TwinVQTransform-domain weighted interleaved vector quantization, an audio codec optimized for audio coding at ultra low bit rates around 8 kbit/s.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kMPEG4Object_CELPCode Excited Linear Prediction, a narrow-band/wide-band speech codec.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kMPEG4Object_HVXCHarmonic Vector Excitation Coding, a very-low bit-rate parametric speech codec.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
See the Moving Picture Experts Group web page (http://www.chiariglione.org/mpeg/) for details about MPEG technologies.
SMPTE timecode types, used in the SMPTETime structure.
enum {
kSMPTETimeType24 = 0,
kSMPTETimeType25 = 1,
kSMPTETimeType30Drop = 2,
kSMPTETimeType30 = 3,
kSMPTETimeType2997 = 4,
kSMPTETimeType2997Drop = 5,
kSMPTETimeType60 = 6,
kSMPTETimeType5994 = 7,
kSMPTETimeType60Drop = 8,
kSMPTETimeType5994Drop = 9,
kSMPTETimeType50 = 10,
kSMPTETimeType2398 = 11
};
kSMPTETimeType2424 video frames per second—standard for 16mm and 35mm film.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType2525 video frames per second—standard for PAL and SECAM video.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType30Drop30 video frames per second, with video-frame numbers adjusted to ensure that the timecode matches elapsed clock time.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType3030 video frames per second.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType299729.97 video frames per second—standard for NTSC video.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType2997Drop29.97 video frames per second, with video-frame numbers adjusted to ensure that the timecode matches elapsed clock time.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType6060 video frames per second.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType599459.94 video frames per second.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType60Drop60 video frames per second, with video-frame numbers adjusted to ensure that the timecode matches elapsed clock time.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType5994Drop59.94 video frames per second, with video-frame numbers adjusted to ensure that the timecode matches elapsed clock time.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType5050 video frames per second.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeType239823.98 video frames per second.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
Flags that describe a SMPTE time state.
enum {
kSMPTETimeValid = (1 << 0),
kSMPTETimeRunning = (1 << 1)
};
kSMPTETimeValidThe full time is valid.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kSMPTETimeRunningTime is running.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
These flags indicate the valid fields in an AudioTimeStamp structure.
enum {
kAudioTimeStampSampleTimeValid = (1 << 0),
kAudioTimeStampHostTimeValid = (1 << 1),
kAudioTimeStampRateScalarValid = (1 << 2),
kAudioTimeStampWordClockTimeValid = (1 << 3),
kAudioTimeStampSMPTETimeValid = (1 << 4)
};
kAudioTimeStampSampleTimeValidThe sample frame time is valid.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioTimeStampHostTimeValidThe host time is valid.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioTimeStampRateScalarValidThe rate scalar is valid.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioTimeStampWordClockTimeValidThe word clock time is valid.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioTimeStampSMPTETimeValidThe SMPTE time is valid.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
A commonly used combination of audio time stamp flags.
enum {
kAudioTimeStampSampleHostTimeValid = (kAudioTimeStampSampleTimeValid | kAudioTimeStampHostTimeValid)
};
kAudioTimeStampSampleHostTimeValidThe sample frame time and the host time are valid.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
Channel labels for use in the mChannelLabel field of an AudioChannelDescription structure.
enum {
kAudioChannelLabel_Unknown = 0xFFFFFFFF,
kAudioChannelLabel_Unused = 0,
kAudioChannelLabel_UseCoordinates = 100,
kAudioChannelLabel_Left = 1,
kAudioChannelLabel_Right = 2,
kAudioChannelLabel_Center = 3,
kAudioChannelLabel_LFEScreen = 4,
kAudioChannelLabel_LeftSurround = 5,
kAudioChannelLabel_RightSurround = 6,
kAudioChannelLabel_LeftCenter = 7,
kAudioChannelLabel_RightCenter = 8,
kAudioChannelLabel_CenterSurround = 9,
kAudioChannelLabel_LeftSurroundDirect = 10,
kAudioChannelLabel_RightSurroundDirect = 11,
kAudioChannelLabel_TopCenterSurround = 12,
kAudioChannelLabel_VerticalHeightLeft = 13,
kAudioChannelLabel_VerticalHeightCenter = 14,
kAudioChannelLabel_VerticalHeightRight = 15,
kAudioChannelLabel_TopBackLeft = 16,
kAudioChannelLabel_TopBackCenter = 17,
kAudioChannelLabel_TopBackRight = 18,
kAudioChannelLabel_RearSurroundLeft = 33,
kAudioChannelLabel_RearSurroundRight = 34,
kAudioChannelLabel_LeftWide = 35,
kAudioChannelLabel_RightWide = 36,
kAudioChannelLabel_LFE2 = 37,
kAudioChannelLabel_LeftTotal = 38,
kAudioChannelLabel_RightTotal = 39,
kAudioChannelLabel_HearingImpaired = 40,
kAudioChannelLabel_Narration = 41,
kAudioChannelLabel_Mono = 42,
kAudioChannelLabel_DialogCentricMix = 43,
kAudioChannelLabel_CenterSurroundDirect = 44,
kAudioChannelLabel_Haptic = 45,
// first order ambisonic channels
kAudioChannelLabel_Ambisonic_W = 200,
kAudioChannelLabel_Ambisonic_X = 201,
kAudioChannelLabel_Ambisonic_Y = 202,
kAudioChannelLabel_Ambisonic_Z = 203,
// Mid/Side Recording
kAudioChannelLabel_MS_Mid = 204,
kAudioChannelLabel_MS_Side = 205,
// X-Y Recording
kAudioChannelLabel_XY_X = 206,
kAudioChannelLabel_XY_Y = 207,
// other
kAudioChannelLabel_HeadphonesLeft = 301,
kAudioChannelLabel_HeadphonesRight = 302,
kAudioChannelLabel_ClickTrack = 304,
kAudioChannelLabel_ForeignLanguage = 305,
// generic discrete channel
kAudioChannelLabel_Discrete = 400,
// numbered discrete channel
kAudioChannelLabel_Discrete_0 = (1<<16) | 0,
kAudioChannelLabel_Discrete_1 = (1<<16) | 1,
kAudioChannelLabel_Discrete_2 = (1<<16) | 2,
kAudioChannelLabel_Discrete_3 = (1<<16) | 3,
kAudioChannelLabel_Discrete_4 = (1<<16) | 4,
kAudioChannelLabel_Discrete_5 = (1<<16) | 5,
kAudioChannelLabel_Discrete_6 = (1<<16) | 6,
kAudioChannelLabel_Discrete_7 = (1<<16) | 7,
kAudioChannelLabel_Discrete_8 = (1<<16) | 8,
kAudioChannelLabel_Discrete_9 = (1<<16) | 9,
kAudioChannelLabel_Discrete_10 = (1<<16) | 10,
kAudioChannelLabel_Discrete_11 = (1<<16) | 11,
kAudioChannelLabel_Discrete_12 = (1<<16) | 12,
kAudioChannelLabel_Discrete_13 = (1<<16) | 13,
kAudioChannelLabel_Discrete_14 = (1<<16) | 14,
kAudioChannelLabel_Discrete_15 = (1<<16) | 15,
kAudioChannelLabel_Discrete_65535 = (1<<16) | 65535
};
kAudioChannelLabel_UnknownUnknown role or unspecified other use for channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_UnusedThe channel is present, but has no intended role or destination.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_UseCoordinatesThe channel is described solely by the mCoordinates field of the AudioChannelDescription structure.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_LeftLeft channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_RightRight channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_CenterCenter channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_LFEScreenLow Frequency Effects Screen; a subwoofer located in front of the theater.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_LeftSurroundLeft surround channel; or for WAVE (.wav) files, back left.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_RightSurroundRight surround channel; or for WAVE (.wav) files, back right.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_LeftCenterLeft center channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_RightCenterRight center channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_CenterSurroundCenter surround channel; or for WAVE (.wav) files, back center or rear surround.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_LeftSurroundDirectLeft surround direct channel; or for WAVE (.wav) files, side left.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_RightSurroundDirectRight surround direct channel; or for WAVE (.wav) files, side right.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_TopCenterSurroundTop center surround-sound channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_VerticalHeightLeftVertical height left channel; or for WAVE (.wav) files, top front left.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_VerticalHeightCenterVertical height center channel; or for WAVE (.wav) files, top front center.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_VerticalHeightRightVertical height right channel; or for WAVE (.wav) files, top front right.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_TopBackLeftTop back left channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_TopBackCenterTop back center channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_TopBackRightTop back right channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_RearSurroundLeftRear surround left channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_RearSurroundRightRear surround right channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_LeftWideLeft wide channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_RightWideRight wide channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_LFE2Low Frequency Effects 2.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_LeftTotalThe left channel of matrix encoded 4 channel audio.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_RightTotalThe right channel of matrix encoded 4 channel audio.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_HearingImpairedChannel carrying audio for the hearing impaired.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_NarrationNarration channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_MonoMonaural channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_DialogCentricMixAvailable in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_CenterSurroundDirectBack center, non diffuse channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_HapticA channel for haptic (touch) data.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Ambisonic_WFirst order Ambisonic channel W.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Ambisonic_XFirst order Ambisonic channel X.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Ambisonic_YFirst order Ambisonic channel Y.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Ambisonic_ZFirst order Ambisonic channel Z.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_MS_MidMid channel of a Mid/Side recording.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_MS_SideSide channel of a Mid/Side recording.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_XY_XX channel of an X-Y recording.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_XY_YY channel of an X-Y recording.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_HeadphonesLeftLeft channel of stereo headphones.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_HeadphonesRightRight channel of stereo headphones.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_ClickTrackClick track channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_ForeignLanguageForeign language channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_DiscreteGeneric discrete channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_0Discrete channel 0.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_1Discrete channel 1.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_2Discrete channel 2.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_3Discrete channel 3.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_4Discrete channel 4.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_5Discrete channel 5.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_6Discrete channel 6.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_7Discrete channel 7.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_8Discrete channel 8.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_9Discrete channel 9.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_10Discrete channel 10.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_11Discrete channel 11.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_12Discrete channel 12.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_13Discrete channel 13.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_14Discrete channel 14.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_15Discrete channel 15.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLabel_Discrete_65535Discrete channel 65536.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
Channel bits for use in the mChannelBitmap field of an AudioChannelLayout structure.
enum {
kAudioChannelBit_Left = (1<<0),
kAudioChannelBit_Right = (1<<1),
kAudioChannelBit_Center = (1<<2),
kAudioChannelBit_LFEScreen = (1<<3),
kAudioChannelBit_LeftSurround = (1<<4),
kAudioChannelBit_RightSurround = (1<<5),
kAudioChannelBit_LeftCenter = (1<<6),
kAudioChannelBit_RightCenter = (1<<7),
kAudioChannelBit_CenterSurround = (1<<8),
kAudioChannelBit_LeftSurroundDirect = (1<<9),
kAudioChannelBit_RightSurroundDirect = (1<<10),
kAudioChannelBit_TopCenterSurround = (1<<11),
kAudioChannelBit_VerticalHeightLeft = (1<<12),
kAudioChannelBit_VerticalHeightCenter = (1<<13),
kAudioChannelBit_VerticalHeightRight = (1<<14),
kAudioChannelBit_TopBackLeft = (1<<15),
kAudioChannelBit_TopBackCenter = (1<<16),
kAudioChannelBit_TopBackRight = (1<<17)
};
kAudioChannelBit_LeftLeft channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_RightRight channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_CenterCenter channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_LFEScreenLow Frequency Effects screen channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_LeftSurroundLeft surround channel; or for WAVE (.wav) files, back left.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_RightSurroundRIght surround channel; or for WAVE (.wav) files, back right.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_LeftCenterLeft center channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_RightCenterRight center channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_CenterSurroundCenter surround channel; or for WAVE (.wav) files, back center.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_LeftSurroundDirectLeft surround direct channel; or for WAVE (.wav) files, side left.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_RightSurroundDirectRight surround direct channel; or for WAVE (.wav) files, side right.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_TopCenterSurroundTo center surround channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_VerticalHeightLeftVertical height left channel; or for WAVE (.wav) files, top front left.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_VerticalHeightCenterVertical height center channel; or for WAVE (.wav) files, top front center.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_VerticalHeightRightVertical height right channel; or for WAVE (.wav) files, top front right.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_TopBackLeftTop back left channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_TopBackCenterTop back center channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelBit_TopBackRightTop back right channel.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
Used in the mChannelFlags field of an AudioChannelDescription structure.
enum {
kAudioChannelFlags_AllOff = 0,
kAudioChannelFlags_RectangularCoordinates = (1<<0),
kAudioChannelFlags_SphericalCoordinates = (1<<1),
kAudioChannelFlags_Meters = (1<<2)
};
kAudioChannelFlags_AllOffAll flags are clear.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelFlags_RectangularCoordinatesSet to indicate the channel is specified by the Cartesian coordinates of the speaker position. This flag is mutually exclusive with kAudioChannelFlags_SphericalCoordinates.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelFlags_SphericalCoordinatesSet to indicate the channel is specified by the spherical coordinates of the speaker position. This flag is mutually exclusive with kAudioChannelFlags_RectangularCoordinates.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelFlags_MetersSet to indicate the units are in meters, clear to indicate the units are relative to the unit cube or unit sphere. For relative units, the listener is assumed to be at the center of the cube or sphere and the radius of the sphere or the distance from the center to the midpoint of the side of the cube is 1.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
Indexes the fields of the mCoordinates array in an AudioChannelDescription structure.
enum {
kAudioChannelCoordinates_LeftRight = 0,
kAudioChannelCoordinates_BackFront = 1,
kAudioChannelCoordinates_DownUp = 2,
kAudioChannelCoordinates_Azimuth = 0,
kAudioChannelCoordinates_Elevation = 1,
kAudioChannelCoordinates_Distance = 2
};
kAudioChannelCoordinates_LeftRightFor rectangular coordinates, negative is left and positive is right. The units are specified by the mChannelFlags field of the AudioChannelDescription structure.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelCoordinates_BackFrontFor rectangular coordinates, negative is back and positive is front. The units are specified by the mChannelFlags field.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelCoordinates_DownUpFor rectangular coordinates, negative is below ground level, 0 is ground level, and positive is above ground level. The units are specified by the mChannelFlags field.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelCoordinates_AzimuthFor spherical coordinates, 0 is front center, positive is right, negative is left, and measurements are in degrees.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelCoordinates_ElevationFor spherical coordinates, +90 is zenith, 0 is horizontal, -90 is nadir, and measurements are in degrees.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelCoordinates_DistanceFor spherical coordinates, distance is radially from the center. The units are specified by the mChannelFlags field of the AudioChannelDescription structure.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
Used in the mChannelLayoutTag field of an AudioChannelLayout structure.
enum {
// General layouts
kAudioChannelLayoutTag_UseChannelDescriptions = (0<<16) | 0,
kAudioChannelLayoutTag_UseChannelBitmap = (1<<16) | 0,
kAudioChannelLayoutTag_Mono = (100<<16) | 1,
kAudioChannelLayoutTag_Stereo = (101<<16) | 2,
kAudioChannelLayoutTag_StereoHeadphones = (102<<16) | 2,
kAudioChannelLayoutTag_MatrixStereo = (103<<16) | 2,
kAudioChannelLayoutTag_MidSide = (104<<16) | 2,
kAudioChannelLayoutTag_XY = (105<<16) | 2,
kAudioChannelLayoutTag_Binaural = (106<<16) | 2,
kAudioChannelLayoutTag_Ambisonic_B_Format = (107<<16) | 4,
kAudioChannelLayoutTag_Quadraphonic = (108<<16) | 4,
kAudioChannelLayoutTag_Pentagonal = (109<<16) | 5,
kAudioChannelLayoutTag_Hexagonal = (110<<16) | 6,
kAudioChannelLayoutTag_Octagonal = (111<<16) | 8,
kAudioChannelLayoutTag_Cube = (112<<16) | 8,
// MPEG defined layouts
kAudioChannelLayoutTag_MPEG_1_0 = kAudioChannelLayoutTag_Mono,
kAudioChannelLayoutTag_MPEG_2_0 = kAudioChannelLayoutTag_Stereo,
kAudioChannelLayoutTag_MPEG_3_0_A = (113<<16) | 3,
kAudioChannelLayoutTag_MPEG_3_0_B = (114<<16) | 3,
kAudioChannelLayoutTag_MPEG_4_0_A = (115<<16) | 4,
kAudioChannelLayoutTag_MPEG_4_0_B = (116<<16) | 4,
kAudioChannelLayoutTag_MPEG_5_0_A = (117<<16) | 5,
kAudioChannelLayoutTag_MPEG_5_0_B = (118<<16) | 5,
kAudioChannelLayoutTag_MPEG_5_0_C = (119<<16) | 5,
kAudioChannelLayoutTag_MPEG_5_0_D = (120<<16) | 5,
kAudioChannelLayoutTag_MPEG_5_1_A = (121<<16) | 6,
kAudioChannelLayoutTag_MPEG_5_1_B = (122<<16) | 6,
kAudioChannelLayoutTag_MPEG_5_1_C = (123<<16) | 6,
kAudioChannelLayoutTag_MPEG_5_1_D = (124<<16) | 6,
kAudioChannelLayoutTag_MPEG_6_1_A = (125<<16) | 7,
kAudioChannelLayoutTag_MPEG_7_1_A = (126<<16) | 8,
kAudioChannelLayoutTag_MPEG_7_1_B = (127<<16) | 8,
kAudioChannelLayoutTag_MPEG_7_1_C = (128<<16) | 8,
kAudioChannelLayoutTag_Emagic_Default_7_1 = (129<<16) | 8,
kAudioChannelLayoutTag_SMPTE_DTV = (130<<16) | 8,
// ITU defined layouts
kAudioChannelLayoutTag_ITU_1_0 = kAudioChannelLayoutTag_Mono,
kAudioChannelLayoutTag_ITU_2_0 = kAudioChannelLayoutTag_Stereo,
kAudioChannelLayoutTag_ITU_2_1 = (131<<16) | 3,
kAudioChannelLayoutTag_ITU_2_2 = (132<<16) | 4,
kAudioChannelLayoutTag_ITU_3_0 =
kAudioChannelLayoutTag_MPEG_3_0_A,
kAudioChannelLayoutTag_ITU_3_1 =
kAudioChannelLayoutTag_MPEG_4_0_A,
kAudioChannelLayoutTag_ITU_3_2 =
kAudioChannelLayoutTag_MPEG_5_0_A,
kAudioChannelLayoutTag_ITU_3_2_1 =
kAudioChannelLayoutTag_MPEG_5_1_A,
kAudioChannelLayoutTag_ITU_3_4_1 =
kAudioChannelLayoutTag_MPEG_7_1_C,
// DVD defined layouts
kAudioChannelLayoutTag_DVD_0 = kAudioChannelLayoutTag_Mono,
kAudioChannelLayoutTag_DVD_1 = kAudioChannelLayoutTag_Stereo,
kAudioChannelLayoutTag_DVD_2 = kAudioChannelLayoutTag_ITU_2_1,
kAudioChannelLayoutTag_DVD_3 = kAudioChannelLayoutTag_ITU_2_2,
kAudioChannelLayoutTag_DVD_4 = (133<<16) | 3,
kAudioChannelLayoutTag_DVD_5 = (134<<16) | 4,
kAudioChannelLayoutTag_DVD_6 = (135<<16) | 5,
kAudioChannelLayoutTag_DVD_7 =
kAudioChannelLayoutTag_MPEG_3_0_A,
kAudioChannelLayoutTag_DVD_8 =
kAudioChannelLayoutTag_MPEG_4_0_A,
kAudioChannelLayoutTag_DVD_9 =
kAudioChannelLayoutTag_MPEG_5_0_A,
kAudioChannelLayoutTag_DVD_10 = (136<<16) | 4,
kAudioChannelLayoutTag_DVD_11 = (137<<16) | 5,
kAudioChannelLayoutTag_DVD_12 =
kAudioChannelLayoutTag_MPEG_5_1_A,
kAudioChannelLayoutTag_DVD_13 = kAudioChannelLayoutTag_DVD_8,
kAudioChannelLayoutTag_DVD_14 = kAudioChannelLayoutTag_DVD_9,
kAudioChannelLayoutTag_DVD_15 = kAudioChannelLayoutTag_DVD_10,
kAudioChannelLayoutTag_DVD_16 = kAudioChannelLayoutTag_DVD_11,
kAudioChannelLayoutTag_DVD_17 = kAudioChannelLayoutTag_DVD_12,
kAudioChannelLayoutTag_DVD_18 = (138<<16) | 5,
kAudioChannelLayoutTag_DVD_19 =
kAudioChannelLayoutTag_MPEG_5_0_B,
kAudioChannelLayoutTag_DVD_20 =
kAudioChannelLayoutTag_MPEG_5_1_B,
// These layouts are recommended for AudioUnit use
// These are the symmetrical layouts
kAudioChannelLayoutTag_AudioUnit_4 =
kAudioChannelLayoutTag_Quadraphonic,
kAudioChannelLayoutTag_AudioUnit_5 =
kAudioChannelLayoutTag_Pentagonal,
kAudioChannelLayoutTag_AudioUnit_6 =
kAudioChannelLayoutTag_Hexagonal,
kAudioChannelLayoutTag_AudioUnit_8 =
kAudioChannelLayoutTag_Octagonal,
// These are the surround-based layouts
kAudioChannelLayoutTag_AudioUnit_5_0 =
kAudioChannelLayoutTag_MPEG_5_0_B,
kAudioChannelLayoutTag_AudioUnit_6_0 = (139<<16) | 6,
kAudioChannelLayoutTag_AudioUnit_7_0 = (140<<16) | 7,
kAudioChannelLayoutTag_AudioUnit_7_0_Front = (148<<16) | 7,
kAudioChannelLayoutTag_AudioUnit_5_1 =
kAudioChannelLayoutTag_MPEG_5_1_A,
kAudioChannelLayoutTag_AudioUnit_6_1 =
kAudioChannelLayoutTag_MPEG_6_1_A,
kAudioChannelLayoutTag_AudioUnit_7_1 =
kAudioChannelLayoutTag_MPEG_7_1_C,
kAudioChannelLayoutTag_AudioUnit_7_1_Front =
kAudioChannelLayoutTag_MPEG_7_1_A,
kAudioChannelLayoutTag_AAC_3_0 =
kAudioChannelLayoutTag_MPEG_3_0_B,
kAudioChannelLayoutTag_AAC_Quadraphonic =
kAudioChannelLayoutTag_Quadraphonic,
kAudioChannelLayoutTag_AAC_4_0 =
kAudioChannelLayoutTag_MPEG_4_0_B,
kAudioChannelLayoutTag_AAC_5_0 =
kAudioChannelLayoutTag_MPEG_5_0_D,
kAudioChannelLayoutTag_AAC_5_1 =
kAudioChannelLayoutTag_MPEG_5_1_D,
kAudioChannelLayoutTag_AAC_6_0 = (141<<16) | 6,
kAudioChannelLayoutTag_AAC_6_1 = (142<<16) | 7,
kAudioChannelLayoutTag_AAC_7_0 = (143<<16) | 7,
kAudioChannelLayoutTag_AAC_7_1 =
kAudioChannelLayoutTag_MPEG_7_1_B,
kAudioChannelLayoutTag_AAC_Octagonal = (144<<16) | 8,
kAudioChannelLayoutTag_TMH_10_2_std = (145<<16) | 16,
kAudioChannelLayoutTag_TMH_10_2_full = (146<<16) | 21,
kAudioChannelLayoutTag_AC3_1_0_1 = (149<<16) | 2, // C LFE
kAudioChannelLayoutTag_AC3_3_0 = (150<<16) | 3, // L C R
kAudioChannelLayoutTag_AC3_3_1 = (151<<16) | 4, // L C R Cs
kAudioChannelLayoutTag_AC3_3_0_1 = (152<<16) | 4, // L C R LFE
kAudioChannelLayoutTag_AC3_2_1_1 = (153<<16) | 4, // L R Cs LFE
kAudioChannelLayoutTag_AC3_3_1_1 = (154<<16) | 5, // L C R Cs LFE
kAudioChannelLayoutTag_DiscreteInOrder = (147<<16) | 0
kAudioChannelLayoutTag_Unknown = 0xFFFF0000
// needs to be ORed with the actual number of channels
};
kAudioChannelLayoutTag_UseChannelDescriptionsUse the array of AudioChannelDescription structures to define the layout.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_UseChannelBitmapUse the bitmap to define the layout.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MonoA standard monaural stream.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_StereoA standard stereo stream (left, right); playback implied.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_StereoHeadphonesA standard stereo stream (left, right); headphone playback implied.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MatrixStereoA matrix encoded stereo stream (left total, right total).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MidSideMid/side recording.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_XYCoincident microphone pair (often 2 figure eights).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_BinauralBinaural stereo (left, right).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_Ambisonic_B_FormatAmbisonics B-format (W, X, Y, Z).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_QuadraphonicQuadraphonic (front left, front right, back left, back right) with 90° loudspeaker separation.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_PentagonalPentagonal (left, right, rear left, rear right, center) with 72° loudspeaker separation.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_HexagonalHexagonal (left, right, rear left, rear right, center, rear) with 60° loudspeaker separation.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_OctagonalOctagonal (front left, front right, rear left, rear right, front center, rear center, side left, side right) with 45° loudspeaker separation.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_CubeCubic (left, right, rear left, rear right, top left, top right, top rear left, top rear right).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_1_0MPEG 1-channel (center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_2_0MPEG 2-channel (left, right).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_3_0_AMPEG 3-channel layout A (left, right, center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_3_0_BMPEG 3-channel layout B (center, left, right).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_4_0_AMPEG 4- channel layout A (left, right, center, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_4_0_BMPEG 4-channel layout B (center, left, right, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_5_0_AMPEG 5-channel layout A (left, right, center, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_5_0_BMPEG 5-channel layout B (left, right, left surround, right surround, center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_5_0_CMPEG 5-channel layout C (left, center, right, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_5_0_DMPEG 5-channel layout D (center, left, right, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_5_1_AMPEG 5.1-channel layout A (left, right, center, low-frequency effects, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_5_1_BMPEG 5.1-channel layout B (left, right, left surround, right surround, center, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_5_1_CMPEG 5.1-channel layout C (left, center, right, left surround, right surround, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_5_1_DMPEG 5.1-channel layout D (center, left, right, left surround, right surround, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_6_1_AMPEG 6.1-channel layout A (left, right, center, low-frequency effects, left surround, right surround, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_7_1_AMPEG 7.1-channel layout A (left, right, center, low-frequency effects, left surround, right surround, left center, right center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_7_1_BMPEG 7.1-channel layout A (center, left center, right center, left, right, left surround, right surround, low-frequency effects (see IS-13818-7 MPEG2-AAC, Table 3.1)).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_MPEG_7_1_CMPEG 7.1-channel layout C (left, right, center, low-frequency effects, left surround, right, rear left surround, rear right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_Emagic_Default_7_1Emagic 7.1-channel default layout (left, right, left surround, right surround, center, low-frequency effects, left center, right center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_SMPTE_DTVSMPTE DTV layout (left, right, center, low-frequency effects, left surround, right surround, left matrix total (for matrix encoded stereo), right matrix total (for matrix encoded stereo), (kAudioChannelLayoutTag_ITU_5_1 plus a matrix encoded stereo mix)).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_ITU_1_0ITU 1-channel layout (center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_ITU_2_0ITU 2-channel layout (left, right).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_ITU_2_1ITU 2.1-channel layout (left, right, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_ITU_2_2ITU 2.2-channel layout (left, right, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_ITU_3_0ITU 3-channel layout (left, right, center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_ITU_3_1ITU 3.1-channel layout (left, right, center, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_ITU_3_2ITU 3.2-channel layout (left, right, center, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_ITU_3_2_1ITU 3.2.1-channel layout (left, right, center, low-frequency effects, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_ITU_3_4_1ITU 3.4.1-channel layout (left, right, center, low-frequency effects, left surround, right surround, rear left surround, rear right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_0DVD monaural layout (center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_1DVD stereo layout (left, right).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_2DVD 3-channel layout (left, right, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_3DVD 4-channel layout (left, right, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_4DVD 2.1-channel layout (left, right, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_5DVD 3.1-channel layout (left, right, low-frequency effects, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_6DVD 4.1-channel layout (left, right, low-frequency effects, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_7DVD 3-channel layout (left, right, center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_8DVD 4-channel layout (left, right, center, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_9DVD 5-channel layout (left, right, center, left surround, right surround)
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_10DVD 3.1-channel layout (left, right, center, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_11DVD 4.1-channel layout (left, right, center, low-frequency effects, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_12DVD 5.1-channel layout (left, right, center, low-frequency effects, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_13DVD 4-channel layout (left, right, center, center surround); duplicate of kAudioChannelLayoutTag_DVD_8.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_14DVD 5-channel layout (left, right, center, left surround, right surround); duplicate of kAudioChannelLayoutTag_DVD_9.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_15DVD 3.1-channel layout (left, right, center, low-frequency effects); duplicate of kAudioChannelLayoutTag_DVD_10.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_16DVD 4.1-channel layout (left, right, center, low-frequency effects, center surround); duplicate of kAudioChannelLayoutTag_DVD_11.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_17DVD 5.1-channel layout (left, right, center, low-frequency effects, left surround, right surround); duplicate of kAudioChannelLayoutTag_DVD_12.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_18DVD 4.1-channel layout (left, right, left surround, right surround, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_19DVD 5-channel layout (left, right, left surround, right surround, center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DVD_20DVD 5.1-channel layout (left, right, left surround, right surround, center, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_4Quadraphonic symmetrical layout, recommended for use by audio units.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_5Pentagonal symmetrical layout, recommended for use by audio units.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_6Hexagonal symmetrical layout, recommended for use by audio units.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_8Octagonal symmetrical layout, recommended for use by audio units.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_5_05-channel surround-based layout, recommended for use by audio units (left, right, left surround, right surround, center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_6_06-channel surround-based layout, recommended for use by audio units (left, right, left surround, right surround, center, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_7_07-channel surround-based layout, recommended for use by audio units (left, right, left surround, right surround, center, rear left surround, rear right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_7_0_FrontAlternate 7-channel surround-based layout, for use by audio units (left, right, left surround, right surround, center, left center, right center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_5_15.1-channel surround-based layout, recommended for use by audio units (left, right, center, low-frequency effects, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_6_16.1-channel surround-based layout, recommended for use by audio units (left, right, center, low-frequency effects, left surround, right surround, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_7_17.1-channel surround-based layout, recommended for use by audio units (left, right, center, low-frequency effects, left surround, right surround, rear left surround, rear right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AudioUnit_7_1_Front7.1-channel surround-based layout, recommended for use by audio units (left, right, center, low-frequency effects, left surround, right surround, left center, right center).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AAC_3_0AAC 3-channel surround-based layout.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AAC_QuadraphonicAAC quadraphonic surround-based layout (left, right, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AAC_4_0AAC 4-channel surround-based layout (center, left, right, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AAC_5_0AAC 5-channel surround-based layout (center, left, right, left surround, right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AAC_5_1AAC 5.1-channel surround-based layout (center, left, right, left surround, right surround, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AAC_6_0AAC 6-channel surround-based layout (center, left, right, left surround, right surround, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AAC_6_1AAC 6.1-channel surround-based layout (center, left, right, left surround, right surround, center surround, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AAC_7_0AAC 7-channel surround-based layout (center, left, right, left surround, right surround, rear left surround, rear right surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AAC_7_1AAC 7.1-channel surround-based layout (center, left center, right center, left, right, left surround, right surround, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AAC_OctagonalAAC 8-channel surround-based layout (center, left, right, left surround, right surround, rear left surround, rear right surround, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_TMH_10_2_stdTMH 10.2, a multiple-channel surround-based layout (left, right, center, vertical height center, left surround direct, right surround direct, left surround, right surround, vertical height left, vertical height right, left wide, right wide, center surround direct, center surround, low-frequency effects 1, low-frequency effects 2).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_TMH_10_2_fullTMH 10.2 (kAudioChannelLayoutTag_TMH_10_2_std) plus the following channels: left center, right center, HI, VI, and Haptic; recommended for use by audio units.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AC3_1_0_1An AC-3 layout (center, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AC3_3_0An AC-3 layout (left, center, right).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AC3_3_1An AC-3 layout (left, center, right, center surround).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AC3_3_0_1An AC-3 layout (left, center, right, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AC3_2_1_1An AC-3 layout (left, right, center surround, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_AC3_3_1_1An AC-3 layout (left, center, right, center surround, low-frequency effects).
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_DiscreteInOrderNeeds to be ORed with the actual number of channels.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
kAudioChannelLayoutTag_UnknownNeeds to be ORed with the actual number of channels.
Available in iPhone OS 2.0 and later.
Declared in CoreAudioTypes.h.
Last updated: 2009-06-24