TooTallNate / node-wav

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

Fix Writer failing with assertion error #5

Closed mmckegg closed 10 years ago

mmckegg commented 10 years ago
AssertionError: can only buffer a finite number of bytes > 0, got "0"
writer.js:86:  this._bytes(0, this._writeHeader);

I'm guessing stream-parser has been updated since this code was written. The simplest way I could find to get the Writer working was bypassing stream-parser and implementing the through stream directly.

Hopefully I haven't just missed something obvious here.

TooTallNate commented 10 years ago

You know what, I'm down for this. stream-parser wasn't really doing anything helpful here anyways. Thanks for the solid re-write!