CMAudioFormatDescriptionGetChannelLayout

Function CMAudioFormatDescriptionGetChannelLayout 

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

Returns a read-only pointer to (and size of) the AudioChannelLayout inside an audio CMFormatDescription.

See CoreAudioTypes.h for the definition of AudioChannelLayout. AudioChannelLayouts are optional; this API will return NULL if one does not exist. 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 AudioChannelLayout inside the audio format description.

ยงSafety

size_out must be a valid pointer or null.