snowdreamtech / musicfox

Docker Images for go-musicfox. (i386,amd64, arm32v6, arm32v7, arm64,ppc64le,riscv64,s390x)
MIT License
2 stars 0 forks source link

ALSA lib confmisc.c:855:(parse_card) cannot find card '0' #1

Open snowdream opened 2 months ago

snowdream commented 2 months ago

在 mac 中启动/ musicfox,无法输出声音。

docker run -ti \
  --name=musicfox \
  -e PULSE_SERVER=docker.for.mac.localhost \
  -e TZ=Asia/Shanghai \
  -v ~/.config/pulse:/home/pulseaudio/.config/pulse \
  --restart unless-stopped \
  snowdreamtech/musicfox:latest \
  /bin/sh
docker run -ti \
  --name=musicfox \
  -e PULSE_SERVER=docker.for.mac.localhost \
  -e TZ=Asia/Shanghai \
  -v ~/.config/pulse:/root/.config/pulse \
  --restart unless-stopped \
  snowdreamtech/musicfox:latest \
  /bin/sh

参考: https://stackoverflow.com/a/50939994/22484657

snowdream commented 2 months ago

错误提示:

docker run -ti \
  --name=musicfox \
  -e PULSE_SERVER=docker.for.mac.localhost \
  -e TZ=Asia/Shanghai \
  -v ~/.config/pulse:/home/pulseaudio/.config/pulse \
  --restart unless-stopped \
  snowdreamtech/musicfox:latest \
  /bin/sh
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM default