Files
craft-libs/crates/audio/tests
ljkx cec20449a2 fix(audio): an empty WAV data chunk before a LIST chunk is no audio (#2123) (#2246)
A `data` chunk of size 0 counted as empty only when the RIFF size matched
the file. A writer that appends a `LIST` chunk after writing the RIFF size
leaves it stale, so the reader took the file for an unfinished recording
and decoded the `LIST` chunk's bytes as samples (8 frames of noise instead
of none).

A size-0 `data` chunk is now also empty when whole chunks follow it and the
first one has an id that follows audio (LIST, bext, cue, JUNK, ...). A
recording that was never finalised (PCM after the header) and bytes that
only start like a chunk still decode as audio.
2026-11-18 15:30:49 -05:00
..
2026-11-17 09:35:16 +00:00