编辑添加 ls -l /dev/snd/
编辑添加 amixer -c 0
我试图让我的 ubuntu 服务器 12.04 lts 播放声音文件。但是我总是收到以下错误,从扬声器测试命令显示。
更新我不再收到以下错误,声音文件将播放(必须将我的用户添加到声音组),但是听不到声音。
speaker-test 1.0.25
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name …Run Code Online (Sandbox Code Playgroud)