I want to play music on my desktop PC via SSH so that the player GUI opens on my laptop, but still use the desktop's local sound system for output. In other words only control the player remotely.
When I open a terminal with SSH -X and start Audacious the GUI opens just fine.
However, it cannot play anything via ALSA nor PulseAudio:
$ audacious
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_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:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib control.c:1528:(snd_ctl_open_noupdate) Invalid CTL default
...
ERROR util.cc:269 [audgui_simple_message]: ALSA error: snd_pcm_open failed: No such file or directory.
It naturally works when I log in to my desktop locally.