Page 1 of 1

Simultanious sound output for multiple users

PostPosted: May 27th, '13, 21:57
by Meo
Mageia 3
Got one soundcard and would like to be able to output (mix) sound from (different) programs running under different user ids.
Tried pulseaudio in system mode with autospawn = no in client.conf But pulseaudio is still starting with the user id I log in as (graphically). I think I missed something.
How do I setup pulseaudio correctly so it can be accessed by all users (in pulse-access group)?

Re: Simultanious sound output for multiple users

PostPosted: May 28th, '13, 20:30
by colin
PulseAudio is also started for the user via an XDG autostart entries that ultimately run /usr/bin/start-pulseaudio-x11 and /usr/bin/start-pulseaudio-kde (if you use KDE) and also /etc/X11/xinit.d/50pulseaudio (if not using GNOME or KDE).

Sadly we don't have a super easy easy way to configure things, so what I would do is edit /etc/sound/profiles/pulse/profile.conf and name the profile slightly differently, e.g. SOUNDPROFILE=pulse-system. This should stop all the above scripts from running but otherwise keep things exactly the same.

I've not tried this but this *should* hopefully prevent PA from starting as your user and it should then default to fallback to the system-wide version.

Hope that helps.

Re: Simultanious sound output for multiple users

PostPosted: May 29th, '13, 14:45
by Meo
Thanks
Meanwhile I just disabled pulse in mcc and added the users that should be able to play sound to audio group. And voila sound works for all of them.
It has the added advantage that kmix now shows me all my channels while it doesn't with pulse enabled.