TooTallNate / node-wav

`Reader` and `Writer` streams for Microsoft WAVE audio files
MIT License
181 stars 37 forks source link

Modify reader to gracefully handle associated data list chunk encountered before format chunk #8

Closed laser closed 2 years ago

laser commented 9 years ago

Nate,

I was able to get node-wav's parser to throw an exception when working with a file with a LIST chunk that came before its fmt chunk. Neither sOx nor Audacity produced an error when opening the same file; I'd argue that node-wav should do the same.

This patch skips over a LIST encountered immediately after format. I've provided the culprit file as a fixture along with some tests.

Take care,

Erin

laser commented 2 years ago

closing due to inactivity