Skip to main content

decode

Function decode 

Source
fn decode(bytes: &[u8]) -> Result<AudioClip, AudioError>
Available on crate feature audio-decode only.
Expand description

Decode interleaved f32 PCM from encoded audio bytes.

Malformed packets are skipped (matching rodio’s leniency); a stream that changes signal spec mid-way is rejected instead of silently misaligned.