summaryrefslogtreecommitdiffstats
path: root/src/pulse
diff options
context:
space:
mode:
authorTanu Kaskinen <tanu.kaskinen@digia.com>2011-02-14 13:41:06 +0200
committerColin Guthrie <cguthrie@mandriva.org>2011-02-22 20:12:31 +0000
commit99ddca89cdca9b0b92ab9870764f9211e6a82e31 (patch)
treecaa9634df48e0383a26c7e7e012ee49c5786cf01 /src/pulse
parentfa12d2a8a88c0eed7b460cde033af0573070696b (diff)
Allow read-only or non-existing sink input volume.
There are two known cases where read-only or non-existing sink input volume is relevant: passthrough streams and the planned volume sharing logic. Passthrough streams don't have volume at all, and the volume sharing logic requires read-only sink input volume. This commit is primarily working towards the volume sharing feature, but support for non-existing sink input volume is also added, because it is so closely related to read-only volume. Some unrelated refactoring in iface-stream.c creeped into this commit too (new function: stream_to_string()).
Diffstat (limited to 'src/pulse')
-rw-r--r--src/pulse/introspect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulse/introspect.h b/src/pulse/introspect.h
index bc50611e..1cadee52 100644
--- a/src/pulse/introspect.h
+++ b/src/pulse/introspect.h
@@ -503,6 +503,8 @@ typedef struct pa_sink_input_info {
int mute; /**< Stream muted \since 0.9.7 */
pa_proplist *proplist; /**< Property list \since 0.9.11 */
int corked; /**< Stream corked \since 1.0 */
+ int has_volume; /**< Stream has volume. If not set, then the meaning of this struct's volume member is unspecified. \since 1.0 */
+ int read_only_volume; /**< Stream volume can only be read. Although volume control is disabled, the stream volume is still not necessarily constant. \since 1.0 */
} pa_sink_input_info;
/** Callback prototype for pa_context_get_sink_input_info() and friends*/