briandorsey / wavrw

wavrw is a command line tool to read and write WAV files with a focus on visualizing the structure of files and parsing metadata.
Apache License 2.0
2 stars 1 forks source link

research: alternate ways to specify individual chunks to avoid panics when reading invalid data #48

Open briandorsey opened 6 months ago

briandorsey commented 6 months ago

Currently attempting to read invalid chunk data with a KnownChunk based struct will result in panics similar to this:

`Err` value: assertion failed: `id == T :: ID` at 0x0