Closed witten closed 4 years ago
As suspected: I confirmed that rebuilding the linuxserver/airsonic
Docker image with s/-headless//
and s/headless=true/headless=false/
across all files in the repo results in a working audio device list:
# java audioDevList
Available mixers:
PulseAudio Mixer
HDMI [plughw:0,3]
HDMI [plughw:0,7]
HDMI [plughw:0,8]
HDMI [plughw:0,9]
PCH [plughw:1,0]
Port HDMI [hw:0]
Port PCH [hw:1]
And when I run the image with the appropriate PUID
/PGID
so that the Airsonic Docker image user has read access to the /dev/snd
devices, then the audio devices also show up in the pull-down list in Airsonic's Java Jukebox devices UI.
We accept PR's, if you have the fix ready.
Added!
Thanks. I commented on the PR.
I'm trying to set up Jukebox mode for local playback, as documented here: https://airsonic.github.io/docs/jukebox/
The first step list is to compile and run some Java code to list available audio devices. When I do that with the LinuxServer Airsonic image, this is what I get:
But this doesn't list any of my actual audio devices, and I don't even have PulseAudio installed.
According to this Airsonic issue comment, the problem may be that you're using the headless JRE variant instead of the non-headless one containing audio capabilities.
This also means that no actual audio devices show up in the Jukebox player settings (not my screenshot).
If I try the same procedure on the same host with the official Airsonic Docker image, which is built with the non-headless JRE, I get the following results:
Actual audio devices!
Host OS: Manjaro Linux 18.1-rc10 Host kernel: 4.19.69 Docker version: 19.03.1-ce, build 74b1e89e8a