I am running a pygame window on a raspberry pi. The raspberry pi is connected to an lcd through gpio (not hdmi). My pygame script does not contain any mention of audio, only some basic rectangle drawing and text drawing.
However when I run it, it outputs this error:
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_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:4528:(_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:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
I have never heard of the ALSA lib so this error message confuses me. I have checked to see whether i have ALSA lib (sudo apt-get install alsa-utils
) and it said alsa-utils is already the newest version (1.1.3-1)
so thats not the problem.
I don't care that sound doesn't work on pygame. The application works perfectly just this annoying 6 line error message shows. I just want to get rid of the messages as it fills up my console everytime i run it.
Thanks :)
groups [USERNAME]
.SDL_AUDIODRIVER=dsp
and see what happens?import os
thenos.environ["SDL_AUDIODRIVER"] = "dsp"
prior toimport pygame
. If this works as well I can write up a detailed answer with an explanation, and hopefully receive a bounty.