Open ghost opened 5 years ago
Similar issue here, if I require('speaker')
with nothing else I get:
[../deps/mpg123/src/output/alsa.c:165] error: cannot open device default
node: pcm_params.c:2354: snd_pcm_hw_refine: Assertion `pcm && params' failed.
I configured a default alsa device, and heard audio using omxplayer. It seems generally bad that node-speaker is attempting to access the device at a module level. This should probably be moved to a constructor or other instance method.
Installed with npm and I'm getting this error. Installing
libasound2-dev
doesn't resolve the issue. Ubuntu 18.04