aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/jack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/jack.cpp')
-rw-r--r--Alc/backends/jack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/jack.cpp b/Alc/backends/jack.cpp
index 93dbaf13..cd02388d 100644
--- a/Alc/backends/jack.cpp
+++ b/Alc/backends/jack.cpp
@@ -503,8 +503,8 @@ static ClockLatency ALCjackPlayback_getClockLatency(ALCjackPlayback *self)
ALCjackPlayback_lock(self);
ret.ClockTime = GetDeviceClockTime(device);
- ret.Latency = ll_ringbuffer_read_space(self->Ring) * DEVICE_CLOCK_RES /
- device->Frequency;
+ ret.Latency = std::chrono::seconds{ll_ringbuffer_read_space(self->Ring)};
+ ret.Latency /= device->Frequency;
ALCjackPlayback_unlock(self);
return ret;