diff options
author | Chris Robinson <[email protected]> | 2017-02-22 15:00:41 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-02-22 15:00:41 -0800 |
commit | e720faf2d40e9e4ec27479ffbbcba1a3b3838956 (patch) | |
tree | d740ea055b3f8091c4db61a6670d97d3a5ee1e81 /Alc/backends/opensl.c | |
parent | 5181e78c1ed098866df7b498de335fb25022f97e (diff) |
Fix OpenSL latency calculation
Diffstat (limited to 'Alc/backends/opensl.c')
-rw-r--r-- | Alc/backends/opensl.c | 4 |
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; |