Steward
分享是一種喜悅、更是一種幸福
程式語言 - Wine - 解決PulseAudio: Unable to connect: Connection refused問題
問題如下:
$ myx86 win32.exe
Box86 v0.2.0 b2d5587e built on Aug 24 2026 16:08:40
Box86 v0.2.0 b2d5587e built on Aug 24 2026 16:08:40
Box86 v0.2.0 b2d5587e built on Aug 24 2026 16:08:40
Box86 v0.2.0 b2d5587e built on Aug 24 2026 16:08:40
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
0024:err:dsound:DSOUND_ReopenDevice Initialize failed: 8889000f
/usr/local/bin/myx86: line 2: 20048 Segmentation fault WINEPREFIX=~/.wine_x86 box86 /root/Wine32/bin/wine "$@"
解法如下:
$ cat > ~/.asoundrc <<'EOF'
pcm.!default {
type null
}
ctl.!default {
type hw
card 0
}
EOF