From 1eeddd84d2ff2482dd4a6d2dd43dc8a315ba72a4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 15 Aug 2009 01:16:57 +0200 Subject: combine: warn when the latency of a stream gets too high --- src/modules/module-combine.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/module-combine.c b/src/modules/module-combine.c index 04c0d4db..155b928a 100644 --- a/src/modules/module-combine.c +++ b/src/modules/module-combine.c @@ -197,6 +197,9 @@ static void adjust_rates(struct userdata *u) { n++; pa_log_debug("[%s] total=%0.2fms sink=%0.2fms ", o->sink->name, (double) o->total_latency / PA_USEC_PER_MSEC, (double) sink_latency / PA_USEC_PER_MSEC); + + if (o->total_latency > 10*PA_USEC_PER_SEC) + pa_log_warn("[%s] Total latency of output is very high (%0.2fms), most likely the audio timing in one of your drivers is broken.", o->sink->name, (double) o->total_latency / PA_USEC_PER_MSEC); } if (min_total_latency == (pa_usec_t) -1) -- cgit