termux找不到声卡,ALSA方式播放声音失败
termux吧
全部回复
仅看楼主
level 1
wiourgwa 楼主
termux或termux加载kali下,使用python3的pygame库,直接报错找不到声卡
```
>>> import pygame
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
>>> pygame.mixer.init()
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4660:(_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:4660:(_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:4660:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5148:(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: No available audio device
```
获取一下信息,也提示没有声卡
```
kali@localhost:~$ aplay -l
aplay: device_list:272: no soundcards found...
```
看了一些帮助,暂时找不到python3调用播放音频的方法。
2020年02月16日 17点02分 1
1