[pulseaudio-commits] r1661 - in /branches/lennart/src/pulsecore: sink.c sink.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Aug 15 12:25:43 PDT 2007


Author: lennart
Date: Wed Aug 15 21:25:42 2007
New Revision: 1661

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1661&root=3Dpulseaudio&vi=
ew=3Drev
Log:
actually mute sinks when asked for i, add new function pa_sink_suspend_all

Modified:
    branches/lennart/src/pulsecore/sink.c
    branches/lennart/src/pulsecore/sink.h

Modified: branches/lennart/src/pulsecore/sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
sink.c?rev=3D1661&root=3Dpulseaudio&r1=3D1660&r2=3D1661&view=3Ddiff
=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/pulsecore/sink.c (original)
+++ branches/lennart/src/pulsecore/sink.c Wed Aug 15 21:25:42 2007
@@ -587,6 +587,7 @@
     pa_sink_assert_ref(s);
 =

     changed =3D s->muted !=3D mute;
+    s->muted =3D mute;
 =

     if (s->set_mute && s->set_mute(s) < 0)
         s->set_mute =3D NULL;
@@ -819,3 +820,16 @@
 =

     return -1;
 }
+
+int pa_sink_suspend_all(pa_core *c, int suspend) {
+    pa_sink *sink;
+    uint32_t idx;
+    int ret =3D 0;
+    =

+    pa_core_assert_ref(c);
+
+    for (sink =3D PA_SINK(pa_idxset_first(c->sinks, &idx)); sink; sink =3D=
 PA_SINK(pa_idxset_next(c->sinks, &idx)))
+        ret -=3D pa_sink_suspend(sink, suspend) < 0;
+
+    return ret;
+}

Modified: branches/lennart/src/pulsecore/sink.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
sink.h?rev=3D1661&root=3Dpulseaudio&r1=3D1660&r2=3D1661&view=3Ddiff
=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/pulsecore/sink.h (original)
+++ branches/lennart/src/pulsecore/sink.h Wed Aug 15 21:25:42 2007
@@ -163,4 +163,6 @@
     return x =3D=3D PA_SINK_RUNNING || x =3D=3D PA_SINK_IDLE;
 }
 =

+int pa_sink_suspend_all(pa_core *c, int suspend);
+
 #endif




More information about the pulseaudio-commits mailing list