Avoid a reference on a constexpr variable

This commit is contained in:
Chris Robinson 2020-05-08 20:11:30 -07:00
parent 1c320c3532
commit 73569dfeca

View File

@ -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.