Skip to main content

codec_id_for

Function codec_id_for 

Source
pub fn codec_id_for(fmt: SampleFormat) -> Option<CodecId>
Expand description

Return the canonical PCM codec ID for a SampleFormat. Planar formats have no direct PCM codec — the caller must convert to interleaved first.