Page 1 of 1

selecting audio device in jukebox mode fails on Debian9

PostPosted: Fri Aug 10, 2018 4:19 pm
by nolbelt

after reading many posts here and trying many tipps, installing additional packages and so on, I still didn't get it working.

I had to upgrade my server from Debian7 to Debian9, that means, hardware didn't change, but selecting the audio device fails.
I read and compiled "audiodevlist" as many years before on the older Debian version, but I only get nearly no output. Look here:

Code: Select all
root@tux:/usr/share/subsonic# cat
import javax.sound.sampled.*;

public class audioDevList{
public static void main(String args[]){

//Get and display a list of
// available mixers.

Mixer.Info[] mixerInfo =
System.out.println("Available mixers:");
for(int cnt = 0; cnt < mixerInfo.length;
}//end for loop
root@tux:/usr/share/subsonic# javac
root@tux:/usr/share/subsonic# java audioDevList
Available mixers:
PulseAudio Mixer

With debian7 it showed a list of about 5 or 7 devices, and with the additional line:
-Djavax.sound.sampled.SourceDataLine="#NVidia [plughw:0,7]" \
jukebox mode worked fine. On Debian9, subsonic starts, everything works in normal mode (as root, so no privileges problem), subsonic user has "jukebox right", but in the android app the progress bar goes from 0:00 to 0:01, 0:02, 0:03 and then jumps back to 0:00 and starts again. But no sound from the onboard sound card. :-(

I dont' know much about java programming or debugging, so what I'd like to know is, how to find out, what is going wrong. Starting subsonic with the old audio device name, gained on Debian7 with the same audiodevlist-tool, doesn't work, too. What logfile can I post here or what steps can i do for you to help me?

Thanks in advance!!

Re: selecting audio device in jukebox mode fails on Debian9

PostPosted: Wed Oct 17, 2018 8:20 am
by nolbelt
100 people seem to have read my post, but no answer...
I'm so sad... :-(
Is there an alternative to subsonic, not having this sound hardware selection problem?

Re: selecting audio device in jukebox mode fails on Debian9

PostPosted: Sun Nov 11, 2018 4:48 am
by frippee
The problem is with the version of Openjdk in Debian 9. How I was able to solve the problem was by installing Oracle java. I completely uninstalled openjdk, but I don't believe this is necessary if you set Oracle as the default.