aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-05 15:20:52 -0800
committerChris Robinson <[email protected]>2018-12-05 15:20:52 -0800
commit10b39d57d53b541bd4e8fd60d166a03de0c9e28c (patch)
tree70b764d3a5542312f04e9e9f964bc1525e1105b2 /OpenAL32
parent164a86a381e4f51383c6afbfdf63dadd3ecb3785 (diff)
Use class methods for the NFC filters
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alSource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp
index 42f05131..872bc9ee 100644
--- a/OpenAL32/alSource.cpp
+++ b/OpenAL32/alSource.cpp
@@ -2840,8 +2840,8 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources)
ALfloat w1 = SPEEDOFSOUNDMETRESPERSEC /
(device->AvgSpeakerDist * device->Frequency);
std::for_each(voice->Direct.Params+0, voice->Direct.Params+voice->NumChannels,
- [w1](DirectParams &parms) -> void
- { NfcFilterCreate(&parms.NFCtrlFilter, 0.0f, w1); }
+ [w1](DirectParams &parms) noexcept -> void
+ { parms.NFCtrlFilter.init(0.0f, w1); }
);
}