aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/pshifter.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/pshifter.cpp
parentf9e6fbaeff2761d90bfd572acb52f9acebf5ea7b (diff)
Use proper array sizes for more gains
Diffstat (limited to 'alc/effects/pshifter.cpp')
-rw-r--r--alc/effects/pshifter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/pshifter.cpp b/alc/effects/pshifter.cpp
index aa20c660..fe116222 100644
--- a/alc/effects/pshifter.cpp
+++ b/alc/effects/pshifter.cpp
@@ -99,8 +99,8 @@ struct PshifterState final : public EffectState {
alignas(16) FloatBufferLine mBufferOut;
/* Effect gains for each output channel */
- float mCurrentGains[MAX_OUTPUT_CHANNELS];
- float mTargetGains[MAX_OUTPUT_CHANNELS];
+ float mCurrentGains[MaxAmbiChannels];
+ float mTargetGains[MaxAmbiChannels];
void deviceUpdate(const DeviceBase *device, const Buffer &buffer) override;