mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
it's probably more appropriate to return the configured latency instead of the actual latency
This commit is contained in:
parent
385a560c82
commit
e0b550710a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)))
|
||||
latency = 0;
|
||||
else {
|
||||
double usec = (double) pa_sink_get_latency(sink);
|
||||
double usec = (double) pa_sink_get_requested_latency(sink);
|
||||
latency = (int) ((usec*44100)/1000000);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue