diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-04-07 23:02:48 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-04-07 23:02:48 +0000 |
commit | f6d95b7291f09f63f50d3b258f6a82580faf7bca (patch) | |
tree | 11596eb4532d79ba4f0b1220f0f14ce9a67c4e8b /src/polypcore | |
parent | 272ab200c24223a04efcc9f5a5df0e5e70b8de59 (diff) |
add new introspection data field for sinks/sources: a flags field which specifies whether the sink/source supports hw volume control and latency querying
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@661 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polypcore')
-rw-r--r-- | src/polypcore/protocol-native.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/polypcore/protocol-native.c b/src/polypcore/protocol-native.c index 763873c2..51280c84 100644 --- a/src/polypcore/protocol-native.c +++ b/src/polypcore/protocol-native.c @@ -1232,6 +1232,7 @@ static void sink_fill_tagstruct(pa_tagstruct *t, pa_sink *sink) { PA_TAG_STRING, sink->monitor_source->name, PA_TAG_USEC, pa_sink_get_latency(sink), PA_TAG_STRING, sink->driver, + PA_TAG_U32, (sink->get_hw_volume ? PA_SINK_HW_VOLUME_CTRL : 0) | (sink->get_latency ? PA_SINK_LATENCY : 0), PA_TAG_INVALID); } @@ -1251,6 +1252,7 @@ static void source_fill_tagstruct(pa_tagstruct *t, pa_source *source) { PA_TAG_STRING, source->monitor_of ? source->monitor_of->name : NULL, PA_TAG_USEC, pa_source_get_latency(source), PA_TAG_STRING, source->driver, + PA_TAG_U32, (source->get_hw_volume ? PA_SOURCE_HW_VOLUME_CTRL : 0) | (source->get_latency ? PA_SOURCE_LATENCY : 0), PA_TAG_INVALID); } |