pub fn resample_pcm(
source: Stream,
input_hz: u32,
output_hz: u32,
) -> Result<Stream>Expand description
Resamples a PCM stream from input_hz to output_hz.
Each PCM packet is rate-converted by nearest-source-frame interleaving; non-PCM packets pass through unchanged. Errors if either rate is zero.