aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-04-04 23:20:59 -0700
committerChris Robinson <[email protected]>2022-04-04 23:20:59 -0700
commit707f4cca27e096c167e79619642fbe2e872ee4c8 (patch)
tree1c65704cd8e62f1c091cb5a1ca0556f019ae8bf4 /alc/alu.cpp
parent8188bb9f019fb7de31502a5f303ebc636c6cc408 (diff)
Limit the super stereo width factor to 0.7
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 748fd4b5..ad5a2115 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -767,7 +767,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 = props->EnhWidth;
+ decoder->mWidthControl = minf(props->EnhWidth, 0.7f);
if(IsAmbisonic(voice->mFmtChannels))
{