wineoss.drv: Add period to latency calculation.

This commit is contained in:
Andrew Eikum 2011-12-01 10:57:18 -06:00 committed by Alexandre Julliard
parent 65381d1c37
commit 3cc871b0b0
1 changed files with 4 additions and 0 deletions

View File

@ -1055,6 +1055,10 @@ static HRESULT WINAPI AudioClient_GetStreamLatency(IAudioClient *iface,
}else
*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);
return S_OK;