Skip to main content

parse

Function parse 

Source
pub fn parse(data: &[u8]) -> Result<(WaveFormat, Bytes), Error>
Expand description

Parse a complete RIFF/WAVE byte buffer into its format and raw PCM data payload.

RIFF has no fragmented/streamable profile in scope here (mirrors crate::Muxer’s buffer-until-finish() design) — the whole file must be available up front. Unknown chunks (LIST, fact, …) are skipped.