summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-04-09 01:17:16 +0000
committerLennart Poettering <lennart@poettering.net>2008-04-09 01:17:16 +0000
commitf3109be9e1df3f7ef723e7122c80e58cc3944951 (patch)
tree6edc9aa5f0255f7f60ea79057072ccd87dc48cac
parentda37a7e93db0f17e03f94f7835d7075faa3ac4ba (diff)
show configured latency and its ranges
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2226 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/pulsecore/cli-text.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/cli-text.c b/src/pulsecore/cli-text.c
index 8bb567b7..5bf27eec 100644
--- a/src/pulsecore/cli-text.c
+++ b/src/pulsecore/cli-text.c
@@ -128,6 +128,7 @@ char *pa_sink_list_to_string(pa_core *c) {
"\tvolume: <%s>\n"
"\tmute: <%i>\n"
"\tlatency: <%0.0f usec>\n"
+ "\tconfigured latency: <%0.0f usec> from range <%0.0f usec> .. <%0.0f usec>\n"
"\tmonitor source: <%u>\n"
"\tsample spec: <%s>\n"
"\tchannel map: <%s>\n"
@@ -147,6 +148,7 @@ char *pa_sink_list_to_string(pa_core *c) {
pa_cvolume_snprint(cv, sizeof(cv), pa_sink_get_volume(sink)),
!!pa_sink_get_mute(sink),
(double) pa_sink_get_latency(sink),
+ (double) pa_sink_get_requested_latency(sink), (double) sink->min_latency, (double) sink->max_latency,
sink->monitor_source ? sink->monitor_source->index : PA_INVALID_INDEX,
pa_sample_spec_snprint(ss, sizeof(ss), &sink->sample_spec),
pa_channel_map_snprint(cm, sizeof(cm), &sink->channel_map),
@@ -194,6 +196,7 @@ char *pa_source_list_to_string(pa_core *c) {
"\tvolume: <%s>\n"
"\tmute: <%u>\n"
"\tlatency: <%0.0f usec>\n"
+ "\tconfigured latency: <%0.0f usec> from range <%0.0f usec> .. <%0.0f usec>\n"
"\tsample spec: <%s>\n"
"\tchannel map: <%s>\n"
"\tused by: <%u>\n"
@@ -212,6 +215,7 @@ char *pa_source_list_to_string(pa_core *c) {
pa_cvolume_snprint(cv, sizeof(cv), pa_source_get_volume(source)),
!!pa_source_get_mute(source),
(double) pa_source_get_latency(source),
+ (double) pa_source_get_requested_latency(source), (double) source->min_latency, (double) source->max_latency,
pa_sample_spec_snprint(ss, sizeof(ss), &source->sample_spec),
pa_channel_map_snprint(cm, sizeof(cm), &source->channel_map),
pa_source_used_by(source),