Commit 3cc871b0 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

wineoss.drv: Add period to latency calculation.

parent 65381d1c
...@@ -1055,6 +1055,10 @@ static HRESULT WINAPI AudioClient_GetStreamLatency(IAudioClient *iface, ...@@ -1055,6 +1055,10 @@ static HRESULT WINAPI AudioClient_GetStreamLatency(IAudioClient *iface,
}else }else
*latency = 10000; /* OSS doesn't provide input latency */ *latency = 10000; /* OSS doesn't provide input latency */
/* pretend we process audio in Period chunks, so max latency includes
* the period time */
*latency += DefaultPeriod;
LeaveCriticalSection(&This->lock); LeaveCriticalSection(&This->lock);
return S_OK; return 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