Commit 45a3bfa2 authored by Claire Girka's avatar Claire Girka Committed by Alexandre Julliard

winepulse: Use stream-specific period in pulse_get_latency.

parent b4aa68c9
......@@ -2118,7 +2118,7 @@ static NTSTATUS pulse_get_latency(void *args)
lat = attr->minreq / pa_frame_size(&stream->ss);
else
lat = attr->fragsize / pa_frame_size(&stream->ss);
*params->latency = (lat * 10000000) / stream->ss.rate + pulse_def_period[0];
*params->latency = (lat * 10000000) / stream->ss.rate + stream->def_period;
pulse_unlock();
TRACE("Latency: %u ms\n", (unsigned)(*params->latency / 10000));
params->result = S_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment