From 556c5d14d7fd862e86d428477afcc708b3f4055c Mon Sep 17 00:00:00 2001 From: Chris Robinson <chris.kcat@gmail.com> Date: Tue, 17 May 2022 02:32:10 -0700 Subject: Avoid a virtual function call to set the decoder width --- alc/alu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc') diff --git a/alc/alu.cpp b/alc/alu.cpp index 487ce4c8..c7fb5f57 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -765,7 +765,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con voice->mFlags.reset(VoiceHasHrtf).reset(VoiceHasNfc); if(auto *decoder{voice->mDecoder.get()}) - decoder->setWidth(minf(props->EnhWidth, 0.7f)); + decoder->mWidthControl = minf(props->EnhWidth, 0.7f); if(IsAmbisonic(voice->mFmtChannels)) { -- cgit v1.2.3