pub fn write_wav(
path: impl AsRef<Path>,
sample_rate: u32,
channels: u16,
samples: &[f32],
) -> Result<()>Expand description
Write interleaved f32 samples to path as 16-bit PCM WAV.
Samples outside [-1, 1] are clipped. samples.len() must be a whole
number of frames.