【发布时间】:2020-07-19 18:16:57
【问题描述】:
我尝试了所有库,现在我尝试使用 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 上
【问题讨论】:
-
我尝试播放音频、.mp3 或 .wav 但我总是出错
-
请包括导致错误的代码部分,以及初始化音频对象的代码。
-
您使用的是什么软件版本?
Audio Target winmm引用 windowswinmm.dll文件。它适用于您的程序吗? -
如何让 ALSA 在 Windows 系统上显示错误消息?你在使用 WSL 吗?
-
是的,我正在使用 wsl
标签: windows audio pygame alsa python-3.8