I broke my sound somehow. Whenever I try to play any sound (e.g. using sox), I get:
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
play FAIL sox: Sorry, there is no default audio device configured
My understanding is that WSLg should support sound forwarding using pulseaudio.
Note:
I'm on Ubuntu 22.04.1
It used to work before a (windows) reboot, I don't know what changed
X11 forwarding works fine
pulseaudioreturns:W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified). E: [pulseaudio] core-util.c: XDG_RUNTIME_DIR (/mnt/wslg/runtime-dir) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)Due to the fact that I'm always root; since that was the default behavior of of the distroy I'm using, I assumed this is ok.
alsa-reloadreturnsUnloading ALSA sound driver modules: (none loaded). Loading ALSA sound driver modules: (none to reload).Not sure if that's supposed to happen.