From 79314c4461333c7dfd7d425d69ffd121d6c163b6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 25 Sep 2018 23:05:27 -0700 Subject: Include the limiter's lookAhead delay in the device latency --- Alc/backends/base.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Alc/backends/base.h') diff --git a/Alc/backends/base.h b/Alc/backends/base.h index 0de4e590..03db56e9 100644 --- a/Alc/backends/base.h +++ b/Alc/backends/base.h @@ -162,6 +162,15 @@ inline void ALCdevice_Lock(ALCdevice *device) inline void ALCdevice_Unlock(ALCdevice *device) { V0(device->Backend,unlock)(); } + +inline ClockLatency GetClockLatency(ALCdevice *device) +{ + ClockLatency ret = V0(device->Backend,getClockLatency)(); + ret.Latency += device->FixedLatency; + return ret; +} + + #ifdef __cplusplus } /* extern "C" */ #endif -- cgit v1.2.3