Skip to main content

sample_format_for

Function sample_format_for 

Source
pub fn sample_format_for(id: &CodecId) -> Option<SampleFormat>
Expand description

Return the SampleFormat implied by a PCM codec ID.

Also accepts the Asterisk slin* aliases, all of which describe 16-bit signed linear PCM.