aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alc/alc.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 6b4bde3f..e7cd65b2 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2085,7 +2085,10 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
device->AuxiliaryEffectSlotMax, device->NumAuxSends);
if(Uhj2Encoder *uhj{device->Uhj_Encoder.get()})
- device->FixedLatency += nanoseconds{seconds{uhj->sFilterSize}} / device->Frequency;
+ {
+ constexpr size_t filter_len{Uhj2Encoder::sFilterSize};
+ device->FixedLatency += nanoseconds{seconds{filter_len}} / device->Frequency;
+ }
/* Enable the stablizer only for formats that have front-left, front-right,
* and front-center outputs.