Skip to main content

parse_wav

Function parse_wav 

Source
fn parse_wav(buf: &[u8]) -> Option<Pcm>
Expand description

Pull format and samples out of a RIFF/WAVE buffer.

ffmpeg writes a placeholder size when the output is a pipe, so the declared data length is not trustworthy — whatever follows the chunk header is the audio.