Skip to main content

resample_mono

Function resample_mono 

Source
pub fn resample_mono(pcm: &[f32], from: u32, to: u32) -> Result<Vec<f32>, Error>
Expand description

A buffer at another rate, brought to SAMPLE_RATE with the capture path’s own filtered resampler: the one way a source declaring another rate becomes a source this crate accepts. A buffer of mono audio at from, converted to to with the input path’s own filter. The same rate hands the buffer straight back.