I have squeeze server(LMS), whatever, and squeeze slave starting on boot up in Ubuntu 12.04. Works as advertised the only issue is it steals my audio device so when someone logs in they get no audio at all.
I'm assuming because squeezeslave is running from the system level via an init.d script and will not give up control of the primary audio device.
The question is how do I get it to share?
Or alternatively how do I set up a player that will start when the computer turns on without having to log into a user, and that will share the audio device when someone does log on?
Squeezeslave works great and mixes fine if started by a user during their session.
The command to start squeeseslave from the init.d script is
squeezeslave --retry -s -m 00:00:00:00:00:02
Results 1 to 6 of 6
-
2012-07-19, 16:45 #1Junior Member
- Join Date
- Jul 2012
- Posts
- 1
squeezeslave steals audio device Ubuntu
-
2012-07-21, 18:16 #2
Hummm...I'm seeing the same thing on my Ubuntu 12.04 X86_64 system. It doesn't seem to matter what user account (root or whoever) squeezeslave runs under as a service. It still seems to monopolize audio output. But start squeezeslave from a gnome terminal session and other apps can play audio just fine.
This has got me stumped. If Ralphy doesn't respond to this thread, you might try cross-posting your question to:
http://forums.slimdevices.com/showth...released/page7
-
2012-07-22, 03:54 #3
I suspect when gnome starts a new default device is created that uses the dmix plugin which allows sharing the device.
We might be able to tell by;
Disabling the squeezeslave service.
Logout from gnome
Switch to a text console ctrl-alt-f1 should do it, login as root and run
squeezeslave -L
You might need to specify the full path to squeezeslave.
Logout and switch back to the gdm login screen ctrl-alt-f7 most likely.
Login to gnome as your normaul user and open a terminal window, still with the squeezeslave service disabled run
squeezeslave -L
Post the output from both if the two are different, if not you'll need to dig into the pulseaudio/alsa ubuntu config and
figure out how to create a default device that uses dmix. I've never used pulseaudio.
Alternatively you could start squeezeslave from .bash_profile of your normal login window.Ralphy
1-Touch, 4-Classics, 2-Booms, 2-Squeezeslaves, 3-Squeezeplays, 3-Squeezelites
Squeezeslave donations always appreciated.
-
2012-07-22, 07:47 #4
Here's a zip file with redirected captures of squeezeslave -L and env from text mode login and gnome login for root and a regular user. (I.e. text,root; text,user; gnome,root; gnome,user).
-
2012-07-22, 07:52 #5
# diff squeezeslave_L_text_root.txt squeezeslave_L_gnome_root.txt
# diff squeezeslave_L_text_user.txt squeezeslave_L_gnome_user.txtCode:17c17 < *16: (ALSA) default (42/42) --- > 16: (ALSA) pulse (11/46) 18a19 > *18: (ALSA) default (11/46)
No differences.
# diff squeezeslave_L_text_root.txt squeezeslave_L_text_user.txt
# diff squeezeslave_L_gnome_root.txt squeezeslave_L_gnome_user.txtCode:17c17 < *16: (ALSA) default (42/42) --- > 16: (ALSA) pulse (11/46) 18a19 > *18: (ALSA) default (11/46)
No differences.
-
2012-07-23, 04:06 #6
Notice default device low latency is 42ms for root vs 11ms for user.
It appears the default device for root is using a plugin most likely dmix if you can share the device as root. Could
also be related to pulse audio. I have NO experience with pulse audio.
42ms is what portaudio reports for alsa devices using a plugin vs 11ms talking directly to the hardware.Ralphy
1-Touch, 4-Classics, 2-Booms, 2-Squeezeslaves, 3-Squeezeplays, 3-Squeezelites
Squeezeslave donations always appreciated.

Reply With Quote

