Page 1 of 1

Jukebox blocks the soundcard / dmix PulseAudio Mixer

PostPosted: Wed Nov 13, 2013 12:58 pm
by atari82
When i start Subsonic no other program can use the soundcard.

I use ALSA on a headless linaro-server (cubietruck) and want to have subsonic (jukebox) and shairplay running at the same time.
I have configured my asound.conf for downmixing and i can use different audio-outputs simultaneously, except for subsonic.

My Subsonic-audio-devices are:

PulseAudio Mixer (this is only, because i use Ubuntus OpenJRE, i have not installed pulseaudio)
sunxicodec [default]
sunxicodec [plughw:0,0] (i use this device as in subsonic.sh, that jukebox works)
Port sunxicodec [hw:0]


I wouldn't need simultaneous playback, if someone knows an answer to this:

When i'm connected to shairplay the soundcard is blocked for subsonic jukebox.
When i disconnect shairplay the soundcard is free again.
When i start subsonic jukebox the soundcard is blocked.
When i stop the song in subsonic jukebox, the soundcard is still blocked. Only a restart of the subsonic-server releases the soundcard.
Would be nice if it would be released after stopping a song.

:-) AK

Re: Jukebox blocks the soundcard / dmix PulseAudio Mixer

PostPosted: Thu Nov 14, 2013 7:05 am
by atari82
SOLVED!

I figured out, that pulseaudio works better than expected on a headless server.
I basically used this tutorial: http://www.foell.org/justin/raspberry-pulse/

I left the Subsonic-audio-device in the subsonic.sh with sunxicodec [plughw:0,0]
Otherwise Subsonic crashes somehow after pressing stop and changing the volume wasn't possible.

Re: Jukebox blocks the soundcard / dmix PulseAudio Mixer

PostPosted: Thu Nov 14, 2013 9:12 am
by atari82
I also had to add

renice -1 -p $!

to the end of subsonic.sh to prevent skipping sound an java using 100% CPU all the time.

:-) AK