Moderator: moderators
export JAVA_OPTS="$JAVA_OPTS '-Djavax.sound.sampled.SourceDataLine=#NVidia [plughw:0,0]'"
:~$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
:~$ javac -version
javac 1.8.0
:~$ java audioDevList
Available mixers:
sunxicodec [default]
sunxicodec [plughw:0,0]
[size=150]sunxisndhdmi [plughw:1,0][/size]
Port sunxicodec [hw:0]
Port sunxisndhdmi [hw:1]
-Djava.awt.headless=true \
'-Djavax.sound.sampled.SourceDataLine=#sunxisndhdmi [plughw:1,0]' \
-verbose:gc \
ERROR JukeboxService Error in jukebox: java.lang.IllegalArgumentException: No line matching interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, big-endian is supported.
:~$ speaker-test -twav -c2
speaker-test 1.0.25
Playback device is hw:1,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 4096 to 32768
Period size range from 1024 to 8192
Using max buffer size 32768
Periods = 4
was set period_size = 8192
was set buffer_size = 32768
0 - Front Left
1 - Front Right
n:~$ speaker-test -c2 -r 44100
speaker-test 1.0.25
Playback device is default
Stream parameters are 44100Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 44100Hz (requested 44100Hz)
Buffer size range from 4096 to 32768
Period size range from 1024 to 8192
Using max buffer size 32768
Periods = 4
was set period_size = 8192
was set buffer_size = 32768
0 - Front Left
1 - Front Right
-Djavax.sound.sampled.SourceDataLine=#ALSA \
-verbose:gc \
import javax.sound.sampled._
AudioSystem.getMixerInfo.toList.map(_.getName).foreach(println)
import javax.sound.sampled._
val mixerList = AudioSystem.getMixerInfo.toList
mixerList.foreach( (i => println(s"${i.getName} = ${i.getDescription}") )
djkarn105 wrote:Sorry to ressurect an old thread but I recently updated to the latest version of subsonic and was looking for the subsonic.sh file to apply this change and it appears that it's no longer in /var/subsonic
did it move? I'm on xubuntu 14.04 what is the procedure for making this happen if subsonic.sh is gone?
JAVA_OPTS="-Djavax.sound.sampled.SourceDataLine=#Port PCH [hw:1]"
[2015-02-10 12:48:26,304] DEBUG JukeboxService - Opened line org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine@2203ef52
Users browsing this forum: No registered users and 20 guests