mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
play ACL event sound only when gained access, not when losing it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1607 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b751f3a3c7
commit
1c7b84204e
1 changed files with 2 additions and 1 deletions
|
|
@ -542,7 +542,8 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *message, vo
|
|||
|
||||
if ((sink = pa_namereg_get(u->core, d->sink_name, PA_NAMEREG_SINK, 0)))
|
||||
if (pa_sink_suspend(sink, suspend) >= 0)
|
||||
pa_scache_play_item_by_name(u->core, "pulse-access", d->sink_name, PA_VOLUME_NORM, 0);
|
||||
if (!suspend)
|
||||
pa_scache_play_item_by_name(u->core, "pulse-access", d->sink_name, PA_VOLUME_NORM, 0);
|
||||
}
|
||||
|
||||
if (d->source_name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue