Contents

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:

    CMFormatDescription being 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