summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-introspect.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-16 00:05:56 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-16 00:05:56 +0000
commitf9e2058820c2a51994708ad11d1ed8e09b12b8b1 (patch)
tree5277545f0b8b9534590d20c32d0d3e1acc2a9982 /polyp/polyplib-introspect.c
parentf5d47a293aa32a8273ef02c597cb263527726465 (diff)
add input latency measurement
add GETOSPACE support to module-oss git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@205 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-introspect.c')
-rw-r--r--polyp/polyplib-introspect.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/polyp/polyplib-introspect.c b/polyp/polyplib-introspect.c
index 919adb9c..1673be9b 100644
--- a/polyp/polyplib-introspect.c
+++ b/polyp/polyplib-introspect.c
@@ -221,7 +221,9 @@ static void context_get_source_info_callback(struct pa_pdispatch *pd, uint32_t c
pa_tagstruct_get_sample_spec(t, &i.sample_spec) < 0 ||
pa_tagstruct_getu32(t, &i.owner_module) < 0 ||
pa_tagstruct_getu32(t, &i.monitor_of_sink) < 0 ||
- pa_tagstruct_gets(t, &i.monitor_of_sink_name) < 0) {
+ pa_tagstruct_gets(t, &i.monitor_of_sink_name) < 0 ||
+ pa_tagstruct_get_usec(t, &i.latency) < 0) {
+
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
}
@@ -515,7 +517,9 @@ static void context_get_source_output_info_callback(struct pa_pdispatch *pd, uin
pa_tagstruct_getu32(t, &i.owner_module) < 0 ||
pa_tagstruct_getu32(t, &i.client) < 0 ||
pa_tagstruct_getu32(t, &i.source) < 0 ||
- pa_tagstruct_get_sample_spec(t, &i.sample_spec) < 0) {
+ pa_tagstruct_get_sample_spec(t, &i.sample_spec) < 0 ||
+ pa_tagstruct_get_usec(t, &i.buffer_usec) < 0 ||
+ pa_tagstruct_get_usec(t, &i.source_usec) < 0) {
pa_context_fail(o->context, PA_ERROR_PROTOCOL);
goto finish;
}