[pulseaudio-commits] r1662 - in /branches/lennart/src/pulsecore: source.c source.h

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


Author: lennart
Date: Wed Aug 15 21:25:56 2007
New Revision: 1662

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1662&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/source.c
    branches/lennart/src/pulsecore/source.h

Modified: branches/lennart/src/pulsecore/source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
source.c?rev=3D1662&root=3Dpulseaudio&r1=3D1661&r2=3D1662&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/source.c (original)
+++ branches/lennart/src/pulsecore/source.c Wed Aug 15 21:25:56 2007
@@ -320,6 +320,7 @@
     pa_source_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;
@@ -438,3 +439,16 @@
 =

     return -1;
 }
+
+int pa_source_suspend_all(pa_core *c, int suspend) {
+    uint32_t idx;
+    pa_source *source;
+    int ret =3D 0;
+    =

+    pa_core_assert_ref(c);
+    =

+    for (source =3D PA_SOURCE(pa_idxset_first(c->sources, &idx)); source; =
source =3D PA_SOURCE(pa_idxset_next(c->sources, &idx)))
+        ret -=3D pa_source_suspend(source, suspend) < 0;
+
+    return ret;
+}

Modified: branches/lennart/src/pulsecore/source.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
source.h?rev=3D1662&root=3Dpulseaudio&r1=3D1661&r2=3D1662&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/source.h (original)
+++ branches/lennart/src/pulsecore/source.h Wed Aug 15 21:25:56 2007
@@ -152,4 +152,6 @@
     return x =3D=3D PA_SOURCE_RUNNING || x =3D=3D PA_SOURCE_IDLE;
 }
 =

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




More information about the pulseaudio-commits mailing list