jasperproject / jasper-client

Client code for Jasper voice computing platform
MIT License
4.53k stars 1.01k forks source link

ALSA unable to open slave #709

Open ghost opened 5 years ago

ghost commented 5 years ago

I've encountered this problem when trying to run an example from the Amethyst game engine. It returned an error:

ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
thread 'main' panicked at 'The device doesn't support any format!?: DeviceNotAvailable', src/libcore/result.rs:1009:5

Then i've tried using aplay on a audio file and got this:

ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
aplay: main:828: audio open error: No such file or directory

Obviously there is some kind of problem here, and i hope anyone knows how to fix it. I'm on arch by the way.

If you need more info please let me know!

orangecms commented 5 years ago

I just came here searching for the same issue happening somewhere else. A temporary workaround for you could be a manually created .asoundrc file. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913045 for some ideas. I just helped myself by downgrading the ALSA lib and plugins back to 1.1.6.