diff options
author | Chris Robinson <[email protected]> | 2020-05-08 20:11:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-05-08 20:11:30 -0700 |
commit | 73569dfecad08b6c2fb5634242b537af73f0c8ab (patch) | |
tree | c7ae8a2085451704fc3c6ec7941be79e0c1d6bfc | |
parent | 1c320c353259c766b39292ed4b2a709e4469762c (diff) |
Avoid a reference on a constexpr variable
-rw-r--r-- | alc/alc.cpp | 5 |
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. |