'PulseAudio: Unable to Connect: Connection refused in LibGDX
I got this error in IntelliJ while trying to set up LibGDX. I'm running PopOS (Ubuntu-based). Any help?
ALSA lib ../../pulse/pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Connection refused
Solution 1:[1]
check everything installed
sudo apt install libpulse-dev pulseaudio apulse
check its started
systemctl --user restart pulseaudio
check you have openJDK if you are using the Oracle one.
Its not libGDX its a java to pulseaudio issue, or more specifically OpenAL sound that libGDX uses and how it interacts with linux audio.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | londonBadger |