Platforms to show: All Mac Windows Linux Cross-Platform
AVFoundationMBS constants
Constants
Constant | Value | Description |
---|---|---|
kAudioFormat60958AC3 | "cac3" |
One of the audio formats.
A 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". |
kAudioFormatAC3 | "ac-3" |
One of the audio formats.
A key that specifies an AC-3 codec. Uses no flags. |
kAudioFormatAES3 | "aes3" |
One of the audio formats.
The 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. |
kAudioFormatALaw | "alaw" |
One of the audio formats.
aLaw 2:1. Uses no flags. |
kAudioFormatAMR | "samr" |
One of the audio formats.
The AMR (Adaptive Multi-Rate) narrow band speech codec. |
kAudioFormatAppleIMA4 | "ima4" |
One of the audio formats.
A key that specifies Apple's implementation of the IMA 4:1 ADPCM codec. Uses no flags. |
kAudioFormatAppleLossless | "alac" |
One of the audio formats.
Apple Lossless. Uses no flags. |
kAudioFormatAudible | "AUDB" |
One of the audio formats.
The codec used for Audible, Inc. audio books. Uses no flags. |
kAudioFormatDVIIntelIMA | &h6D730011 |
One of the audio formats.
DVI/Intel IMA ADPCM - ACM code 17. |
kAudioFormatiLBC | "ilbc" |
One of the audio formats.
The iLBC (internet Low Bitrate Codec) narrow band speech codec. Uses no flags. |
kAudioFormatLinearPCM | "lpcm" |
One of the audio formats.
A key that specifies linear PCM, a noncompressed audio data format with one frame per packet. Uses the linear PCM format flags in "AudioStreamBasicDescription Flags". |
kAudioFormatMACE3 | "MAC3" |
One of the audio formats.
MACE 3:1. Uses no flags. |
kAudioFormatMACE6 | "MAC6" |
One of the audio formats.
MACE 6:1. Uses no flags. |
kAudioFormatMicrosoftGSM | &h6D730031 |
One of the audio formats.
Microsoft GSM 6.10 - ACM code 49. |
kAudioFormatMIDIStream | "midi" |
One of the audio formats.
A 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. |
kAudioFormatMPEG4AAC | "aac " |
One of the audio formats.
A 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. |
kAudioFormatMPEG4AAC_ELD | "aace" |
One of the audio formats.
MPEG-4 AAC Enhanced Low Delay audio object. Uses no flags. |
kAudioFormatMPEG4AAC_ELD_SBR | "aacf" |
One of the audio formats.
MPEG-4 AAC Enhanced Low Delay audio object with SBR (spectral band replication) extension layer. Uses no flags. |
kAudioFormatMPEG4AAC_ELD_V2 | "aacg" | One of the audio formats. |
kAudioFormatMPEG4AAC_HE | "aach" |
One of the audio formats.
MPEG-4 High Efficiency AAC audio object. Uses no flags. |
kAudioFormatMPEG4AAC_HE_V2 | "aacp" |
One of the audio formats.
MPEG-4 High Efficiency AAC Version 2 audio object. Uses no flags. |
kAudioFormatMPEG4AAC_LD | "aacl" |
One of the audio formats.
MPEG-4 AAC Low Delay audio object. Uses no flags. |
kAudioFormatMPEG4AAC_Spatial | "aacs" |
One of the audio formats.
MPEG-4 Spatial Audio audio object. Uses no flags. |
kAudioFormatMPEG4CELP | "celp" |
One of the audio formats.
A 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. |
kAudioFormatMPEG4HVXC | "hvxc" |
One of the audio formats.
A 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. |
kAudioFormatMPEG4TwinVQ | "twvq" |
One of the audio formats.
A 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. |
kAudioFormatMPEGLayer1 | ".mp1" |
One of the audio formats.
MPEG-1/2, Layer 1 audio. Uses no flags |
kAudioFormatMPEGLayer2 | ".mp2" |
One of the audio formats.
MPEG-1/2, Layer 2 audio. Uses no flags |
kAudioFormatMPEGLayer3 | ".mp3" |
One of the audio formats.
MPEG-1/2, Layer 3 audio. Uses no flags |
kAudioFormatParameterValueStream | "apvs" |
One of the audio formats.
A "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. |
kAudioFormatQDesign | "QDMC" |
One of the audio formats.
QDesign music. Uses no flags |
kAudioFormatQDesign2 | "QDM2" |
One of the audio formats.
QDesign2 music. Uses no flags |
kAudioFormatQUALCOMM | "Qclp" |
One of the audio formats.
QUALCOMM PureVoice. Uses no flags |
kAudioFormatTimeCode | "time" |
One of the audio formats.
A stream of IOAudioTimeStamp structures. Uses the IOAudioTimeStamp flags (see "Audio Time Stamp Flags" and "Audio Time Stamp Flag Combination Constant"). |
kAudioFormatULaw | "ulaw" |
One of the audio formats.
μLaw 2:1. Uses no flags. |
Audio Quality Values
Constant | Value | Description |
---|---|---|
AVAudioQualityHigh | &h60 |
High quality sample rate conversion. |
AVAudioQualityLow | &h20 |
Low quality rate conversion. |
AVAudioQualityMax | &h7F |
Maximum quality sample rate conversion. |
AVAudioQualityMedium | &h40 |
Medium quality sample rate conversion. |
AVAudioQualityMin | 0 |
The minimum quality for sample rate conversion. |
Error Constants
Constant | Value | Description |
---|---|---|
AVErrorApplicationIsNotAuthorized | -11836 |
The application is not authorized to play media. |
AVErrorApplicationIsNotAuthorizedToUseDevice | -11852 |
The user has denied this application permission for media capture. Available in OS X v10.9 and later. |
AVErrorCompositionTrackSegmentsNotContiguous | -11824 |
The source media can't be added because it contains gaps. |
AVErrorContentIsNotAuthorized | -11835 |
The user is not authorized to play the media. |
AVErrorContentIsProtected | -11831 |
The application is not authorized to open the media. |
AVErrorDecodeFailed | -11821 |
The operation could not be completed because some source media could not be decoded. |
AVErrorDecoderNotFound | -11833 |
The decoder for the given media was not found The error's userInfo may contain values for the keys AVErrorMediaTypeKey and AVErrorMediaSubTypeKey, if they are available. |
AVErrorDecoderTemporarilyUnavailable | -11839 |
The appropriate decoder is currently not available. The error's userInfo may contain AVErrorMediaTypeKey and AVErrorMediaSubTypeKey, if they are available. |
AVErrorDeviceAlreadyUsedByAnotherSession | -11804 |
Media could not be captured from the device because it is already in use elsewhere in this application. |
AVErrorDeviceInUseByAnotherApplication | -11815 |
The device could not be opened because it is in use by another application. |
AVErrorDeviceLockedForConfigurationByAnotherProcess | -11817 |
Settings for the device could not be changed because the device is being controlled by another application. |
AVErrorDeviceNotConnected | -11814 |
The device could not be opened because it is not connected or turned on. |
AVErrorDeviceWasDisconnected | -11808 |
Recording stopped because the device was turned off or disconnected. |
AVErrorDiskFull | -11807 |
Recording stopped because the disk is getting full. |
AVErrorDisplayWasDisabled | -11845 |
Screen capture failed because the display was inactive. |
AVErrorEncoderNotFound | -11834 |
The requested encoder was not found. The error's userInfo may contain values for the keys AVErrorMediaTypeKey and AVErrorMediaSubTypeKey, if they are available. |
AVErrorEncoderTemporarilyUnavailable | -11840 |
The appropriate encoder is currently not available. The error's userInfo may contain AVErrorMediaTypeKey and AVErrorMediaSubTypeKey, if they are available. |
AVErrorExportFailed | -11820 |
The export could not be completed. |
AVErrorFailedToLoadMediaData | -11849 |
The media resource does not contain all of the data required and cannot be loaded. Available in OS X v10.9 and later. |
AVErrorFileAlreadyExists | -11823 |
The file could not be created because a file with the same name already exists in the same location. |
AVErrorFileFailedToParse | -11829 |
The media could not be opened because the file is damaged or not in a recognized format. |
AVErrorFileFormatNotRecognized | -11828 |
The media could not be opened because it is not in a recognized format. |
AVErrorIncompatibleAsset | -11848 | The media could not be displayed because the iOS device is not capable of playing the content. This might occur if the device does not support playing a particular video profile level. more |
AVErrorInvalidCompositionTrackSegmentDuration | -11825 |
The source media can't be added because its duration in the destination is invalid. |
AVErrorInvalidCompositionTrackSegmentSourceDuration | -11827 |
The source media can't be added because it has no duration. |
AVErrorInvalidCompositionTrackSegmentSourceStartTime | -11826 |
The source media can't be added because its start time in the destination is invalid. |
AVErrorInvalidOutputURLPathExtension | -11843 |
The path extension of the URL was invalid. |
AVErrorInvalidSourceMedia | -11822 |
The operation could not be completed because some source media could not be read. |
AVErrorInvalidVideoComposition | -11841 |
You attempted to perform an operation with the asset that is not supported. |
AVErrorMaximumDurationReached | -11810 |
Recording stopped because the maximum duration for the file was reached. |
AVErrorMaximumFileSizeReached | -11811 |
Recording stopped because the maximum size for the file was reached. |
AVErrorMaximumNumberOfSamplesForFileFormatReached | -11813 |
Recording stopped because the maximum number of samples for the file was reached. |
AVErrorMaximumStillImageCaptureRequestsExceeded | -11830 |
The photo could not be taken because there are too many photo requests that haven't completed yet. |
AVErrorMediaChanged | -11809 |
Recording stopped because the format of the source media changed. |
AVErrorMediaDiscontinuity | -11812 |
Recording stopped because there was an interruption in the input media. |
AVErrorNoDataCaptured | -11805 |
Recording failed because no data was received. |
AVErrorNoImageAtTime | -11832 |
There is no image at that time in the media. |
AVErrorOperationInterrupted | -11847 |
Operation was interrupted. |
AVErrorOperationNotSupportedForAsset | -11838 |
You attempted to perform an operation with the asset that is not supported. |
AVErrorOutOfMemory | -11801 |
The operation could not be completed because there is not enough memory to process all of the media. |
AVErrorReferenceForbiddenByReferencePolicy | -11842 |
You attempted to perform an operation with the asset that attempted to follow a reference that was not allowed. |
AVErrorScreenCaptureFailed | -11844 |
Screen capture failed. |
AVErrorServerIncorrectlyConfigured | -11850 |
The HTTP server sending the media resource is not configured as expected. This might mean that the server does not support byte range requests. Available in OS X v10.9 and later. |
AVErrorSessionConfigurationChanged | -11806 |
Recording stopped because the configuration of media sources and destinations changed. |
AVErrorSessionNotRunning | -11803 |
Recording could not be started because no data is being captured. |
AVErrorTorchLevelUnavailable | -11846 |
The specified torch level is valid but currently unavailable. This might be due to the device being overheated currently. Available in OS X v10.9 and later. |
AVErrorUnknown | -11800 |
Reason for the error is unknown. |