Commits
Commits on
70849e07ad7e30da44cd8a7f390dc93bfb49542eFiltered to crates/ec-riff/src/write.rsClear filter2026-08-14
feat(riff): WAV reader/writer and the hound shim over itAhmet Kaan Gümüş · 5dd56cf
feat(riff): WAV reader/writer and the hound shim over it ec-riff writes and reads RIFF/WAVE: 8/16/24/32-bit integer PCM and 32-bit float, mono through 7.1, any sample rate. The writer streams and patches the RIFF, data and fact sizes in finalize (best-effort on drop), and emits WAVE_FORMAT_EXTENSIBLE with a channel mask whenever a file has more than two channels or more than 16 bits. The reader walks the chunk list rather than assuming fmt-then-data, so LIST/INFO, fact and odd-sized chunks with their pad byte are skipped, and a truncated or unpatched data size yields what is actually there. RF64, ADPCM and 64-bit float are refused by name. shims/hound carries package name hound 3.5.1 over ec-riff, covering exactly what edith consumes: WavWriter::create/write_sample/finalize, WavSpec, SampleFormat and an Error with the incumbent's variants. Checks: cargo test -p ec-riff -p hound (10 tests), and the emitted oracle artifacts compared against ffmpeg's own decode - 5 written formats and the 6 wav fixtures all PASS at corr 1.000000, RMS delta 0.