Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing speaker results in: Aborted (core dumped) #126

Open
ghost opened this issue Jan 21, 2019 · 1 comment
Open

Importing speaker results in: Aborted (core dumped) #126

ghost opened this issue Jan 21, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 21, 2019

Installed with npm and I'm getting this error. Installing libasound2-dev doesn't resolve the issue. Ubuntu 18.04

$ node -e "require('speaker')"
ALSA lib conf.c:3523:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
[../deps/mpg123/src/output/alsa.c:165] error: cannot open device default
node: pcm_params.c:2290: snd_pcm_hw_refine: Assertion `pcm && params' failed.
Aborted (core dumped)
@yofreke
Copy link

yofreke commented Feb 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant