CMAudioFormatDescriptionGetMostCompatibleFormat(_:)
Returns a read-only pointer to the appropriate audio format list item in an audio format description.
Declaration
func CMAudioFormatDescriptionGetMostCompatibleFormat(_ desc: CMAudioFormatDescription) -> UnsafePointer<AudioFormatListItem>?Parameters
- desc:
CMFormatDescriptionbeing interrogated.
Return Value
A read-only pointer to the appropriate AudioFormatListItem inside the audio format description.
Discussion
This property returns a pointer to the most compatible AudioFormatListItem in the kAudioFormatProperty_FormatList. This API is specific to audio format descriptions, and returns NULL if called with a non-audio format description.
See Also
Working with Audio Descriptions
CMSoundDescriptionFlavorCMAudioFormatDescriptionCreateSummary(allocator:formatDescriptionArray:flags:formatDescriptionOut:)CMAudioFormatDescriptionCreate(allocator:asbd:layoutSize:layout:magicCookieSize:magicCookie:extensions:formatDescriptionOut:)CMAudioFormatDescriptionEqual(_:otherFormatDescription:equalityMask:equalityMaskOut:)CMAudioFormatDescriptionGetChannelLayout(_:sizeOut:)CMAudioFormatDescriptionGetFormatList(_:sizeOut:)CMAudioFormatDescriptionGetMagicCookie(_:sizeOut:)CMAudioFormatDescriptionGetRichestDecodableFormat(_:)CMAudioFormatDescriptionGetStreamBasicDescription(_:)CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout(_:flavor:)CMSwapBigEndianSoundDescriptionToHost(_:_:)CMSwapHostEndianSoundDescriptionToBig(_:_:)CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData(allocator:bigEndianSoundDescriptionData:size:flavor:formatDescriptionOut:)CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer(allocator:bigEndianSoundDescriptionBlockBuffer:flavor:formatDescriptionOut:)CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer(allocator:audioFormatDescription:flavor:blockBufferOut:)