fn resample(samples: &[f32], from: u32, to: u32) -> Vec<f32>
Linear resampling to the wire rate; identity when the rates match.