When I run the same code on my Fedora 29 workstation or my old laptop with Ubuntu 16.04 then the libgdx code runs perfectly and will overlap with the audio from Firefox as well as being recognized by pavucontrol as a process named "java".ĮDIT: When I log in to my session using GNOME instead of my i3 windows manager it works! Please explain how to make this work on i3. It seems that openAL is talking directly to alsa rather than the pulseaudio server. However if I am to start Firefox and play an audio file before running the libgdx code, then I run the libgdx code it prints this error: ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slaveĪL lib: (EE) alsa_open_playback: Could not open playback device 'default': Device or resource busy However when I start my volume control GUI (pavucontrol) I get a message saying pulse audio has not been started. When I run the original generated libgdx code it works fine. happen if you try to connect to a non-root Pu (note i was running in no root user) the game sound run fine in a debian VM, but i can't manage to making work in arch.
I have a problem with openAL and pulseaudio. XDGRUNTIMEDIR (/run/user/1000) is not owned by us (uid 1002), but by uid 1000 (This could e.g. trying to run or build the project fails as gradle cannot locate natives-linux-arm64 for lwjgl-glfw, lwjgl-openal, lwjgl-opengl, lwjgl-stb and lwjgl.