[pulseaudio-commits] r1607 - /branches/lennart/src/modules/module-hal-detect.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Aug 9 14:56:24 PDT 2007
Author: lennart
Date: Thu Aug 9 23:56:23 2007
New Revision: 1607
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1607&root=3Dpulseaudio&vi=
ew=3Drev
Log:
play ACL event sound only when gained access, not when losing it
Modified:
branches/lennart/src/modules/module-hal-detect.c
Modified: branches/lennart/src/modules/module-hal-detect.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/mo=
dule-hal-detect.c?rev=3D1607&root=3Dpulseaudio&r1=3D1606&r2=3D1607&view=3Dd=
iff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/modules/module-hal-detect.c (original)
+++ branches/lennart/src/modules/module-hal-detect.c Thu Aug 9 23:56:23 20=
07
@@ -542,7 +542,8 @@
=
if ((sink =3D pa_namereg_get(u->core, d->sink_name, PA=
_NAMEREG_SINK, 0)))
if (pa_sink_suspend(sink, suspend) >=3D 0)
- pa_scache_play_item_by_name(u->core, "pulse-ac=
cess", d->sink_name, PA_VOLUME_NORM, 0);
+ if (!suspend)
+ pa_scache_play_item_by_name(u->core, "puls=
e-access", d->sink_name, PA_VOLUME_NORM, 0);
}
=
if (d->source_name) {
More information about the pulseaudio-commits
mailing list