aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-12-11 21:42:34 -0800
committerChris Robinson <[email protected]>2021-12-11 21:42:34 -0800
commit5e3fcb3a934844f1d70aa23a8a871a6915565ed2 (patch)
tree34957fb6f4f8da7b522f131f781844e21a4c8f33 /alc/alc.cpp
parent01dd34f305b9ad2c8e6bf0642cd976f9788fdf3a (diff)
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.
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp1
1 files changed, 1 insertions, 0 deletions
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;