diff options
author | Chris Robinson <[email protected]> | 2022-05-14 21:23:03 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-05-14 21:23:03 -0700 |
commit | 83238973ed08225adf03e76b6933e0c209f93fd9 (patch) | |
tree | 7e5a1d68cba91ae46cddaa7a2506a54eb4f3c19b /alc | |
parent | 0a57ebdd495149156736aea3e1aba4d2b3e55dd4 (diff) |
Use virtual functions for the decoder
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index c7fb5f57..487ce4c8 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->mWidthControl = minf(props->EnhWidth, 0.7f); + decoder->setWidth(minf(props->EnhWidth, 0.7f)); if(IsAmbisonic(voice->mFmtChannels)) { |