From 10b39d57d53b541bd4e8fd60d166a03de0c9e28c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 5 Dec 2018 15:20:52 -0800 Subject: Use class methods for the NFC filters --- Alc/alc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/alc.cpp') diff --git a/Alc/alc.cpp b/Alc/alc.cpp index 0c6bd5dc..810cba10 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -2341,8 +2341,8 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) ALfloat w1 = SPEEDOFSOUNDMETRESPERSEC / (device->AvgSpeakerDist * device->Frequency); std::for_each(voice->Direct.Params, voice->Direct.Params+voice->NumChannels, - [w1](DirectParams ¶ms) -> void - { NfcFilterCreate(¶ms.NFCtrlFilter, 0.0f, w1); } + [w1](DirectParams ¶ms) noexcept -> void + { params.NFCtrlFilter.init(0.0f, w1); } ); } } -- cgit v1.2.3