ebitengine / oto

♪ A low-level library to play sound on multiple platforms ♪
Apache License 2.0
1.6k stars 134 forks source link

newbie question: aplay works, oto gets "ALSA lib confmisc.c:767:(parse_card) cannot find card '0'" #111

Open DaleEMoore opened 4 years ago

DaleEMoore commented 4 years ago

Howdy all y'all, I'm sorry for what will probably be a very newbie question but I can't seem to find my way forward. I've taken example/main.go and aplay works without problem:

dalem@QnD3:~/go/src/goLang/src/beepOto/1-hello-beep/a$ aplay ../LameDrivers-01-_Frozen_Egg.mp3 Playing raw data '../LameDrivers-01-_Frozen_Egg.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono

but oto fails with:

ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM default

Any help you can provide is very much appreciated! DaleEMoore@gMail.Com

hajimehoshi commented 4 years ago

Hi,

This seems like a general Alsa question rather than Oto. I'm afraid I'm not so familiar with Alsa's details.

https://askubuntu.com/questions/342420/cannot-play-sound-alsa-lib-errors might be a similar issue.