diff options
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index f9834197..d17969f4 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2104,8 +2104,8 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) } nanoseconds::rep sample_delay{0}; - if(device->mUhjEncoder) - sample_delay += UhjEncoder::sFilterDelay; + if(auto *encoder{device->mUhjEncoder.get()}) + sample_delay += encoder->getDelay(); if(auto *ambidec = device->AmbiDecoder.get()) { if(ambidec->hasStablizer()) |