From 3cc871b0b08094319f4a9eb6a8c07a6ae456fe05 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 1 Dec 2011 10:57:18 -0600 Subject: [PATCH] wineoss.drv: Add period to latency calculation. --- dlls/wineoss.drv/mmdevdrv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/wineoss.drv/mmdevdrv.c b/dlls/wineoss.drv/mmdevdrv.c index b46b60e91c1..bb3297bb057 100644 --- a/dlls/wineoss.drv/mmdevdrv.c +++ b/dlls/wineoss.drv/mmdevdrv.c @@ -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;