git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1662
fefdeb5f-60dc-0310-8127-
8f9354f1896f
pa_source_assert_ref(s);
changed = s->muted != mute;
+ s->muted = mute;
if (s->set_mute && s->set_mute(s) < 0)
s->set_mute = NULL;
return -1;
}
+
+int pa_source_suspend_all(pa_core *c, int suspend) {
+ uint32_t idx;
+ pa_source *source;
+ int ret = 0;
+
+ pa_core_assert_ref(c);
+
+ for (source = PA_SOURCE(pa_idxset_first(c->sources, &idx)); source; source = PA_SOURCE(pa_idxset_next(c->sources, &idx)))
+ ret -= pa_source_suspend(source, suspend) < 0;
+
+ return ret;
+}
return x == PA_SOURCE_RUNNING || x == PA_SOURCE_IDLE;
}
+int pa_source_suspend_all(pa_core *c, int suspend);
+
#endif