path: root/src/pulsecore/sink.h
diff options
authorArun Raghavan <>2011-03-02 02:06:54 +0530
committerArun Raghavan <>2011-05-02 11:54:48 +0530
commit71ec9577cf052558cfddb051c7d038c91b397bc5 (patch)
tree221aab721dd65557e802f6702a4e6edacccf1054 /src/pulsecore/sink.h
parent54c391e6db550c5519df0ebb37f2197eed440c92 (diff)
sink: Remove PASSTHROUGH flag
This removes the passthrough flag from sinks since we will drop exclusively passthrough sinks in favour of providing a list of formats supported by each sink. We can still determine whether a sink is in passthrough mode by checking if any non-PCM streams are attached to it.
Diffstat (limited to 'src/pulsecore/sink.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/sink.h b/src/pulsecore/sink.h
index a96dd90a..492abf68 100644
--- a/src/pulsecore/sink.h
+++ b/src/pulsecore/sink.h
@@ -382,6 +382,10 @@ int pa_sink_suspend_all(pa_core *c, pa_bool_t suspend, pa_suspend_cause_t cause)
/* Use this instead of checking s->flags & PA_SINK_FLAT_VOLUME directly. */
pa_bool_t pa_sink_flat_volume_enabled(pa_sink *s);
+/* Is the sink in passthrough mode? (that is, is there a passthrough sink input
+ * connected to this sink? */
+pa_bool_t pa_sink_is_passthrough(pa_sink *s);
void pa_sink_set_volume(pa_sink *sink, const pa_cvolume *volume, pa_bool_t sendmsg, pa_bool_t save);
const pa_cvolume *pa_sink_get_volume(pa_sink *sink, pa_bool_t force_refresh);