aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/opensl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/opensl.c b/Alc/backends/opensl.c
index a667dc70..b8d6d29a 100644
--- a/Alc/backends/opensl.c
+++ b/Alc/backends/opensl.c
@@ -694,8 +694,8 @@ static ClockLatency ALCopenslPlayback_getClockLatency(ALCopenslPlayback *self)
ALCopenslPlayback_lock(self);
ret.ClockTime = GetDeviceClockTime(device);
- ret.Latency = ll_ringbuffer_read_space(self->mRing) * DEVICE_CLOCK_RES /
- device->Frequency;
+ ret.Latency = ll_ringbuffer_read_space(self->mRing)*device->UpdateSize *
+ DEVICE_CLOCK_RES / device->Frequency;
ALCopenslPlayback_unlock(self);
return ret;