CMAudioFormatDescriptionGetRichestDecodableFormat(_:)
Returns a read-only pointer to the appropriate audio format list item in an audio format description.
Declaration
func CMAudioFormatDescriptionGetRichestDecodableFormat(_ desc: CMAudioFormatDescription) -> UnsafePointer<AudioFormatListItem>?Parameters
- desc:
CMFormatDescription being interrogated.
Return Value
A read-only pointer to the appropriate AudioFormatListItem inside the audio format description.
Discussion
This property performs validation on the formats represented by the audio in the description. It finds the first AudioFormatListItem for which the current system has a valid decoder. This API is specific to audio format descriptions, and will return NULL if called with a non-audio format description. It may also return NULL if there is no suitable decoder available on the current system for this audio format.
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:)CMAudioFormatDescriptionGetMostCompatibleFormat(_:)CMAudioFormatDescriptionGetStreamBasicDescription(_:)CMDoesBigEndianSoundDescriptionRequireLegacyCBRSampleTableLayout(_:flavor:)CMSwapBigEndianSoundDescriptionToHost(_:_:)CMSwapHostEndianSoundDescriptionToBig(_:_:)CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData(allocator:bigEndianSoundDescriptionData:size:flavor:formatDescriptionOut:)CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionBlockBuffer(allocator:bigEndianSoundDescriptionBlockBuffer:flavor:formatDescriptionOut:)CMAudioFormatDescriptionCopyAsBigEndianSoundDescriptionBlockBuffer(allocator:audioFormatDescription:flavor:blockBufferOut:)