diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-04-10 01:26:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-04-10 01:26:04 +0200 |
commit | f7c229d8f9a4c67ff7ef0f3d351069a45ba19aff (patch) | |
tree | 7b7197b5996e6f77978559f91fbe0a0deae7f152 /src/pulsecore/cli-text.c | |
parent | 9ae8ca2c3754abb9b6f6ce94c414c12d87419ac0 (diff) |
core: add a seperate fixed_latency field for sinks/sources with fixed latency
Diffstat (limited to 'src/pulsecore/cli-text.c')
-rw-r--r-- | src/pulsecore/cli-text.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/pulsecore/cli-text.c b/src/pulsecore/cli-text.c index 324f83c8..b0911ef1 100644 --- a/src/pulsecore/cli-text.c +++ b/src/pulsecore/cli-text.c @@ -288,7 +288,11 @@ char *pa_sink_list_to_string(pa_core *c) { (double) pa_sink_get_requested_latency(sink) / (double) PA_USEC_PER_MSEC, (double) min_latency / PA_USEC_PER_MSEC, (double) max_latency / PA_USEC_PER_MSEC); - } + } else + pa_strbuf_printf( + s, + "\tfixed latency: %0.2f ms\n", + (double) pa_sink_get_requested_latency(sink) / PA_USEC_PER_MSEC); if (sink->card) pa_strbuf_printf(s, "\tcard: %u <%s>\n", sink->card->index, sink->card->name); @@ -382,7 +386,11 @@ char *pa_source_list_to_string(pa_core *c) { (double) pa_source_get_requested_latency(source) / PA_USEC_PER_MSEC, (double) min_latency / PA_USEC_PER_MSEC, (double) max_latency / PA_USEC_PER_MSEC); - } + } else + pa_strbuf_printf( + s, + "\tfixed latency: %0.2f ms\n", + (double) pa_source_get_requested_latency(source) / PA_USEC_PER_MSEC); if (source->monitor_of) pa_strbuf_printf(s, "\tmonitor_of: %u\n", source->monitor_of->index); |