[pulseaudio-discuss] ubuntu flash pulseaudio multiuser
Colin Guthrie
gmane at colin.guthr.ie
Wed Dec 22 12:12:01 PST 2010
'Twas brillig, and duportail at 22/12/10 19:51 did gyre and gimble:
> Op 22-12-2010 20:37, Colin Guthrie schreef:
>> 'Twas brillig, and duportail at 22/12/10 19:26 did gyre and gimble:
>>> I have a multi-user system with four usb soundcards.I use pulseaudio per
>>> user.
>>> I set default soundcard per user.However flash uses always the first usb
>>> soundcard.Other applications use the user's default soundcard.
>>> Is there a solution or is it a flash issue?
>> Do you use system-wide PA or a separate PA process for each user
>> (recommended).
>>
>> If the latter, then all you need to do is setup the ACLs correctly
>> (probably via some custom udev trickery) so that a given user is *only*
>> allowed to use the one USB card.
>>
>> This setup will mean each user can only use one sound card by virtual of
>> file-system permissions and PA is designed to respect these permissions.
>>
>> Col
>>
>
> I use a separate PA process for each user.
So can each user see multiple sinks or just the one? (in e.g. pavucontrol)
> With padevchooser I set the default sink for that user.
padevchooser is rubbish and unsupported and obsolete. I strongly
recommend not using it at all.
Ideally each users PA process will only have one sink and thus there is
really no option for any apps in the first place.
> Al program's,such as mediaplayers sends the
> sound to the correct usb device that is set as default for this user.
> Only flash player in firefox or opera sends the sound to the first
> soundcard.And not to the default soundcard for this user.
Well I'm confused as if there is only one sink listed for each user in
their own private PA daemon, this suggests that these applications are
bypassing PA and accessing ALSA directly. Not sure why they would do
that, but flash does have a habbit of being rubbish with such things.
Still if the ACLs on the sound devices themselves are restricted then
even if it does bypass PA each user should still only have access to one
sound device each.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
More information about the pulseaudio-discuss
mailing list