aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-05-17 02:32:10 -0700
committerChris Robinson <[email protected]>2022-05-17 02:32:10 -0700
commit556c5d14d7fd862e86d428477afcc708b3f4055c (patch)
tree7d71d684729eca9289fe2684bb11867efa349aa9 /alc/alu.cpp
parent64cb0dc2649df03393fdbba186c11bb2567f9e0c (diff)
Avoid a virtual function call to set the decoder width
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp2
1 files changed, 1 insertions, 1 deletions
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))
{