TooTallNate/node-lame — Issue #1: Weird error on Ubuntu 10.04 and Lame v3.99.1
Author: pedromtavares
Created: 2011-11-14 19:33:13+00:00
State: open

As a pre-note: everything works perfectly on my local OS X installation.

After grabbing the latest code from the repo and setting this up for my radio website (code is being used here: https://github.com/pedromtavares/radio/blob/master/lib/decoder.js (line 19 might be commented so I could leave the radio working until I fix this)), the encoder immediately fails and prints out this error:

AssertionError: false == true
at /usr/local/lib/node_modules/lame/node_modules/strtok/lib/strtok.js:290:20
at Parser. (/usr/local/lib/node_modules/lame/node_modules/strtok/lib/strtok.js:366:9)
at Parser.emit (events.js:67:17)
at Parser.write (/usr/local/lib/node_modules/lame/lib/parser.js:133:8)
at Encoder.ondata (stream.js:38:26)
at Encoder.emit (events.js:67:17)
at afterWrite (/usr/local/lib/node_modules/lame/lib/encoder.js:147:12)
------------------------

(it wasn't printing anything until I updated the code from the npm version to the repository version)

On a side note, I uploaded a .wav to the server, ran the test-encoder.js file to an .mp3 output file and it encoded perfectly.