CMAudioFormatDescriptionGetMostCompatibleFormat

Function CMAudioFormatDescriptionGetMostCompatibleFormat 

Source
pub unsafe extern "C-unwind" fn CMAudioFormatDescriptionGetMostCompatibleFormat(
    desc: &CMAudioFormatDescription,
) -> *const AudioFormatListItem
Available on crate features CMFormatDescription and objc2-core-audio-types only.
Expand description

Returns a read-only pointer to the appropriate AudioFormatListItem inside an audio CMFormatDescription.

This property returns a pointer to the last AudioFormatListItem in the kAudioFormatProperty_FormatList (see AudioFormat.h). This API is specific to audio format descriptions, and will return NULL if called with a non-audio format description.

Returns: A read-only pointer to the appropriate AudioFormatListItem inside the audio format description.