Returns a read-only pointer to the appropriate Audio
inside an audio CMFormat
.
SDKs
- iOS 4.0+
- macOS 10.7+
- tvOS 9.0+
Framework
- Core Media
Declaration
func CMAudioFormatDescriptionGetRichestDecodableFormat(_ desc: CMAudio Format Description) -> Unsafe Pointer<Audio Format List Item>?
Parameters
desc
CMFormatDescription being interrogated.
Return Value
A read-only pointer to the appropriate Audio
inside the audio format description.
Discussion
This property performs validation on the formats represented by the audio in the description. It finds the first Audio
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.