Skip to main content

encode_wav

Function encode_wav 

Source
pub fn encode_wav(
    audio: &WavAudio,
    format: WavSampleFormat,
) -> Result<Vec<u8>, ErrorsJSL>
Expand description

Serialises audio as a canonical WAV file in the requested sample format. Samples outside [-1, 1) are clipped for the integer formats (scale is 2^(bits-1)).