Skip to main content

decode

Function decode 

Source
pub fn decode(data: &[u8]) -> Option<DecodedStream>
Expand description

Decode a complete FLAC stream: the fLaC marker, the metadata blocks (only STREAMINFO is interpreted; the rest are skipped), then the audio frames. Verifies the audio MD5 against STREAMINFO when present. None on malformed input or any CRC mismatch.