TooTallNate / node-lame

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

Audible glitches #96

Closed boedy closed 4 years ago

boedy commented 4 years ago

I'm not sure where in the chain this happening, but I thought I raise the issue here for other to see.

Compared to playing mp3 files using regular media players (i.e. VLC), I hear subtle, but definitely noticeable glitches during the audio playback. Does anyone else experience the same symptoms or have an explanation what could be causing this?

The code I used:

const decoder = lame.Decoder();
const speaker = new Speaker({
    channels: 2,          // 2 channels
    bitDepth: 16,         // 16-bit samples
    sampleRate: 44100     // 44,100 Hz sample rate
});

fs.createReadStream('test.mp3')
    .pipe(decoder)
    .pipe(speaker);

My Setup: Machine: 2018 Macbook pro (Mojave) 16GB mpg123-backend: openal

boedy commented 4 years ago

Closing as I believe it is related to the openal backend. This should be handled in the speaker package.