TooTallNate / node-lame

Node.js native bindings to libmp3lame & libmpg123
MIT License
567 stars 113 forks source link

mono encoding #20

Open qwerter opened 11 years ago

qwerter commented 11 years ago

Hi,

When passing mono pcm stream to Encoder, sometimes it just crashes, sometimes output is too fast.

Best regards, Vic.

qwerter commented 11 years ago

found the problem, you should use lame_encode_buffer and to pass NULL for one channel, instead of using lame_encode_buffer_interleaved. I can make a pull request if you like