Skip to main content

write_wav

Function write_wav 

Source
pub fn write_wav(
    samples: &[i16],
    config: &AudioConfig,
    path: &Path,
) -> Result<()>
Expand description

Writes i16 PCM samples to a WAV file.

Creates a WAV file with the specified audio config (channels, sample_rate, bit_depth).