Skip to main content

wav_bytes

Function wav_bytes 

Source
pub fn wav_bytes(data: &[f64], rate: u32) -> Result<Vec<u8>, GraphError>
Expand description

Serialize an IEEE-float, mono, 32-bit WAV exactly like upstream write_wav.

Fails when a tap is not finite once narrowed to f32 (1e100 is a finite f64 but an infinite f32), so every writer that shares it rejects the coefficients before its first file.