我尝试了所有的库,现在我尝试使用pygame的混音器,我对alsa驱动程序有很多问题,比如:
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_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:4693:(_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:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or 
directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
pygame.error: ALSA: Couldn't open audio device: No such file or directory所以我试着更改默认驱动程序,就像这里写着https://wiki.libsdl.org/FAQUsingSDL#Win32,但现在我在每个选项中都遇到了这个问题
pygame.error: Audio target 'winmm' not available我不知道我还能做什么,有人能帮我吗?即时消息在windows btw上
发布于 2020-08-07 06:12:07
问题是我使用的是WSL,我得到了ALSA驱动程序错误。我在windows PowerShell中运行代码,它起作用了!
https://stackoverflow.com/questions/62984020
复制相似问题