From 5e3fcb3a934844f1d70aa23a8a871a6915565ed2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 11 Dec 2021 21:42:34 -0800 Subject: Avoid initializing the NFC filter for every voice channel It can be initialized once with the device's speaker distance since it won't change in between resets, then copied into the voice where it can be adjusted as needed. --- alc/alc.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'alc/alc.cpp') diff --git a/alc/alc.cpp b/alc/alc.cpp index df38b22b..9f2abc13 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1755,6 +1755,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) return ALC_NO_ERROR; device->AvgSpeakerDist = 0.0f; + device->mNFCtrlFilter = NfcFilter{}; device->mUhjEncoder = nullptr; device->AmbiDecoder = nullptr; device->Bs2b = nullptr; -- cgit v1.2.3