Skip to main content

pcm

Function pcm 

pub fn pcm(format: AudioFormat) -> AudioEncoding
Expand description

Returns uncompressed PCM in 20 ms frames at the rate and layout of format.

Pass the source’s own format, so the samples go out as they come in. A microphone’s format is known only once it opens, and is resampled to whatever is passed here.