diff options
Diffstat (limited to 'Alc/backends/wasapi.cpp')
-rw-r--r-- | Alc/backends/wasapi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/wasapi.cpp b/Alc/backends/wasapi.cpp index e531a9ae..52f324f7 100644 --- a/Alc/backends/wasapi.cpp +++ b/Alc/backends/wasapi.cpp @@ -1145,8 +1145,8 @@ ClockLatency ALCwasapiPlayback_getClockLatency(ALCwasapiPlayback *self) ALCwasapiPlayback_lock(self); ALCdevice *device{STATIC_CAST(ALCbackend, self)->mDevice}; ret.ClockTime = GetDeviceClockTime(device); - ret.Latency = self->mPadding.load(std::memory_order_relaxed) * DEVICE_CLOCK_RES / - device->Frequency; + ret.Latency = std::chrono::seconds{self->mPadding.load(std::memory_order_relaxed)}; + ret.Latency /= device->Frequency; ALCwasapiPlayback_unlock(self); return ret; |