Skip to main content

Module wav

Module wav 

Source
Expand description

Minimal WAV (PCM i16 / f32 LE) cold decoder — no external codec crate.

Structs§

DecodedWav
WavStream
A seekable, bounded RIFF/WAVE PCM source. The owner must supply a stable, authorized reader whose range begins at its current position and remains unchanged for this object’s lifetime. Parsing does not establish authority, provenance, or integrity. Reads use a caller-provided byte buffer.

Functions§

decode_wav
Parse a complete WAV file from bytes.
encode_wav_i16_mono
Encode mono i16 LE as a minimal WAV into out. Returns bytes written.