aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/reverb.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/reverb.cpp
parentf9e6fbaeff2761d90bfd572acb52f9acebf5ea7b (diff)
Use proper array sizes for more gains
Diffstat (limited to 'alc/effects/reverb.cpp')
-rw-r--r--alc/effects/reverb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp
index e9f2e35f..7e90f692 100644
--- a/alc/effects/reverb.cpp
+++ b/alc/effects/reverb.cpp
@@ -340,8 +340,8 @@ struct EarlyReflections {
float Coeff[NUM_LINES][2]{};
/* The gain for each output channel based on 3D panning. */
- float CurrentGain[NUM_LINES][MAX_OUTPUT_CHANNELS]{};
- float PanGain[NUM_LINES][MAX_OUTPUT_CHANNELS]{};
+ float CurrentGain[NUM_LINES][MaxAmbiChannels]{};
+ float PanGain[NUM_LINES][MaxAmbiChannels]{};
void updateLines(const float density_mult, const float diffusion, const float decayTime,
const float frequency);
@@ -384,8 +384,8 @@ struct LateReverb {
VecAllpass VecAp;
/* The gain for each output channel based on 3D panning. */
- float CurrentGain[NUM_LINES][MAX_OUTPUT_CHANNELS]{};
- float PanGain[NUM_LINES][MAX_OUTPUT_CHANNELS]{};
+ float CurrentGain[NUM_LINES][MaxAmbiChannels]{};
+ float PanGain[NUM_LINES][MaxAmbiChannels]{};
void updateLines(const float density_mult, const float diffusion, const float lfDecayTime,
const float mfDecayTime, const float hfDecayTime, const float lf0norm,