pub fn write_wav( samples: &[i16], config: &AudioConfig, path: &Path, ) -> Result<()>
Writes i16 PCM samples to a WAV file.
Creates a WAV file with the specified audio config (channels, sample_rate, bit_depth).