pub fn write_wav_float32(samples: &[f32], sample_rate: u32) -> Vec<u8> ⓘExpand description
Writes the upstream mono float32 RIFF layout.
For values that Python’s struct.pack('<I', ...) cannot represent, the
legacy infallible API returns an empty vector instead of panicking. Call
try_write_wav_float32 when the error must be reported.