My system only has 48000 bitrate audio, yet the node-speaker init is briefly opening a 44100 channel for Nan, causing a segfault.
$ node
> require('speaker');
Registered as JACK client mpg123-23847.
[../deps/mpg123/src/output/jack.c:271] error: JACK Sample Rate 48000 is different to sample rate of file 44100.
[../deps/mpg123/src/output/jack.c:58] warning: FIXME: One needs to wait or write some silence here to prevent the last bits of audio to vanish out of the ringbuffer.
Segmentation fault
(note I added value details to the jack.c logging)
My system only has 48000 bitrate audio, yet the node-speaker init is briefly opening a 44100 channel for Nan, causing a segfault.
(note I added value details to the jack.c logging)
Offending init code in
binding.cc
: