Commit 92d8e93a authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

winealsa: Have GetStreamLatency reflect the ALSA period.

parent 9bd61f43
...@@ -1138,7 +1138,9 @@ static HRESULT WINAPI AudioClient_GetStreamLatency(IAudioClient *iface, ...@@ -1138,7 +1138,9 @@ static HRESULT WINAPI AudioClient_GetStreamLatency(IAudioClient *iface,
LeaveCriticalSection(&This->lock); LeaveCriticalSection(&This->lock);
*latency = 500000; /* one mmdevapi period plus one period we hide in the ALSA buffer */
*latency = MulDiv(This->alsa_period_frames, 10000000, This->fmt->nSamplesPerSec)
+ This->mmdev_period_rt;
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