Thanks for the reply, Sindre!
Setting another card as default is not an option, since that would send all system sounds (like loud error pop-ups sounds) to the same output as music.
I tried "-Djavax.sound.sampled.SourceDataLine=#USB Audio [hw:1,0]"
and "-Djavax.sound.sampled.SourceDataLine=#USB Audio"
but no sound...
Reading
http://www.jsresources.org/faq_audio.html did not help either.
I suppose the problem is in device name I'm using, but that seems to me to be correct:
andrej@polar:/var/subsonic> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC885 Analog [ALC885 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC885 Digital [ALC885 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
andrej@polar:/var/subsonic> aplay -L
default:CARD=Intel
HDA Intel, ALC885 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC885 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC885 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC885 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC885 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC885 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC885 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
HDA Intel, ALC885 Digital
IEC958 (S/PDIF) Digital Audio Output
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=U0x46d0x991
USB Device 0x46d:0x991, USB Audio
Default Audio Device
front:CARD=U0x46d0x991,DEV=0
USB Device 0x46d:0x991, USB Audio
Front speakers
surround40:CARD=U0x46d0x991,DEV=0
USB Device 0x46d:0x991, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=U0x46d0x991,DEV=0
USB Device 0x46d:0x991, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=U0x46d0x991,DEV=0
USB Device 0x46d:0x991, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=U0x46d0x991,DEV=0
USB Device 0x46d:0x991, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=U0x46d0x991,DEV=0
USB Device 0x46d:0x991, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=U0x46d0x991,DEV=0
USB Device 0x46d:0x991, USB Audio
IEC958 (S/PDIF) Digital Audio Output
Here is section of log file when I click on play:
1242539 [btpool0-4] INFO org.directwebremoting.impl.DefaultRemoter - Exec: nowPlayingService.getNowPlayingForCurrentPlayer()
1244605 [btpool0-4] INFO org.directwebremoting.impl.DefaultRemoter - Exec: playlistService.play()
1244608 [btpool0-4] INFO javazoom.jlgui.basicplayer.BasicPlayer - open(net.sourceforge.subsonic.io.PlaylistInputStream@2144c5bb)
1244639 [btpool0-4] INFO javazoom.jlgui.basicplayer.BasicPlayer - Create Line
1244639 [btpool0-4] INFO javazoom.jlgui.basicplayer.BasicPlayer - Create Line : Source format : MPEG1L3 44100.0 Hz, unknown bits per sample, stereo, unknown frame size, 38.28125 frames/second,
1244639 [btpool0-4] INFO javazoom.jlgui.basicplayer.BasicPlayer - Create Line : Target format: PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian
1244639 [btpool0-4] INFO javazoom.jlgui.basicplayer.BasicPlayer - Line : org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine@24c98b07
1244640 [btpool0-4] INFO javazoom.jlgui.basicplayer.BasicPlayer - startPlayback called
1244640 [btpool0-4] INFO javazoom.jlgui.basicplayer.BasicPlayer - initLine()
1244641 [btpool0-4] INFO javazoom.jlgui.basicplayer.BasicPlayer - Open Line : BufferSize=50000
1247076 [btpool0-4] INFO org.directwebremoting.impl.DefaultRemoter - Exec: nowPlayingService.getNowPlaying()
... etc ...
but no output....
Your help is very much appreciated.