winecoreaudio: Fix latency calculation.
This commit is contained in:
parent
acd8d60faa
commit
9bd61f4337
|
@ -1210,8 +1210,8 @@ static HRESULT WINAPI AudioClient_GetStreamLatency(IAudioClient *iface,
|
|||
latency += stream_latency;
|
||||
/* pretend we process audio in Period chunks, so max latency includes
|
||||
* the period time */
|
||||
latency += DefaultPeriod;
|
||||
*out = (latency / (double)This->fmt->nSamplesPerSec) * 10000000;
|
||||
*out = MulDiv(latency, 10000000, This->fmt->nSamplesPerSec)
|
||||
+ This->period_ms * 10000;
|
||||
|
||||
OSSpinLockUnlock(&This->lock);
|
||||
|
||||
|
|
Loading…
Reference in New Issue