aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/dedicated.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-15 12:56:36 -0700
committerChris Robinson <[email protected]>2022-08-15 12:56:36 -0700
commit82c5b741e5c7448eb2649e33505622e42e08794e (patch)
tree70113c84ceb57c68b58bc02d99f372f223bda26b /alc/effects/dedicated.cpp
parentf9e6fbaeff2761d90bfd572acb52f9acebf5ea7b (diff)
Use proper array sizes for more gains
Diffstat (limited to 'alc/effects/dedicated.cpp')
-rw-r--r--alc/effects/dedicated.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp
index 434dfc69..4d7a39f0 100644
--- a/alc/effects/dedicated.cpp
+++ b/alc/effects/dedicated.cpp
@@ -43,6 +43,10 @@ namespace {
using uint = unsigned int;
struct DedicatedState final : public EffectState {
+ /* The "dedicated" effect can output to the real output, so should have
+ * gains for all possible output channels and not just the main ambisonic
+ * buffer.
+ */
float mCurrentGains[MAX_OUTPUT_CHANNELS];
float mTargetGains[MAX_OUTPUT_CHANNELS];