it's probably more appropriate to return the configured latency instead of the actual latency

This commit is contained in:
Lennart Poettering 2009-02-23 23:55:05 +01:00
parent 385a560c82
commit e0b550710a

View file

@ -569,7 +569,7 @@ static int esd_proto_get_latency(connection *c, esd_proto_t request, const void
if (!(sink = pa_namereg_get(c->protocol->core, c->options->default_sink, PA_NAMEREG_SINK))) if (!(sink = pa_namereg_get(c->protocol->core, c->options->default_sink, PA_NAMEREG_SINK)))
latency = 0; latency = 0;
else { else {
double usec = (double) pa_sink_get_latency(sink); double usec = (double) pa_sink_get_requested_latency(sink);
latency = (int) ((usec*44100)/1000000); latency = (int) ((usec*44100)/1000000);
} }