Page 1 of 1

Selecting audio output in remote mode on Linux

PostPosted: Tue Feb 10, 2015 12:56 am
by wintrmute
I have Subsonic 5.1 installed on Ubuntu 14.04.
(So that's using OpenJDK's Java 1.7 then, I think?)

My media PC has multiple audio outputs available - analogue via sound card, optical digital via sound card, and then three HDMI outputs (something to do with the nvidia driver). How can I get to select which one I want Subsonic to use when in remote mode?

Thanks in advance

Re: Selecting audio output in remote mode on Linux

PostPosted: Tue Feb 10, 2015 1:03 am
by wintrmute
Edit: Found this post which looks like it could be helpful: viewtopic.php?f=2&t=2038

Downside -- wow, that looks rather low level, I was hoping for something like a nice menu with a select box on it!

Also, doesn't appear to be working for me -- looks like Subsonic uses org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine rather than javax.sound.sampled.SourceDataLine now, perhaps?

Re: Selecting audio output in remote mode on Linux

PostPosted: Wed Feb 11, 2015 3:51 am
by wintrmute
After a while of trying to debug this, I've come to the conclusion that, actually, subsonic is simply just crashing a thread somehow whenever it plays in remote control/jukebox mode. It's worked at least once, but mostly just seems to die. I don't know why :(

Re: Selecting audio output in remote mode on Linux

PostPosted: Wed Feb 11, 2015 5:31 am
by wintrmute
Looks like the culprit was Ubuntu/Debian setting java sound defaults to use Pulseaudio, which could be reverted as per http://keithp.com/blogs/Java-Sound-on-Linux/