pub(crate) fn resample_slice(slice: &[f32], new_len: usize) -> Cow<'_, [f32]>Expand description
Resample the given slice to the given length, using linear interpolation.
Returns the slice as-is if it is of the correct length. Returns a Vec of
zeroes if the slice is empty.