pub fn encode_wav(samples: &[i16], header: &WavHeader) -> Vec<u8> ⓘ
Write PCM samples to a WAV file (in memory as bytes).