PulseAudio

Alexander Boström abo at kth.se
Wed Feb 28 18:41:56 UTC 2007


tis 2007-02-27 klockan 13:49 -0500 skrev David Zeuthen:

> That's only because PA decides to open the device directly and haven't
> been taught to give it up on session inactivity. That's not hard to
> change and it's the right thing to do *anyway* since we probably want a
> default policy where audio is muted from inactive sessions just like
> video is muted.  

Ok, so what are the problems with a really naive solution like this:

When a session is swapped out from a console, some system daemon revokes
the ACL:s and signals the user PulseAudio daemon to give up the device.
If it doesn't comply, more force will probably have to be used.
(Timeouts in user interfaces suck though.)

It could be as simple as sending SIGHUP/SIGUSR1, SIGTERM and SIGKILL to
whatever process is currently hogging the device. Or use D-Bus instead
of SIGHUP, since that would allow for specifying exactly what devices
needs to be released.

/abo




More information about the Fedora-desktop-list mailing list