diff options
author | Chris Robinson <[email protected]> | 2016-03-16 08:50:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-03-16 08:51:12 -0700 |
commit | 606402fff05b115bc8b4728f9444fa46ef7e5e35 (patch) | |
tree | 69e2543b7faf5ee473c682de9f842e3bcd3defbd /Alc/effects | |
parent | 55ff0c143e67ceccd46f3d2ca24e9f6fd4d4884c (diff) |
Make sure enough reverb panning gains are defined
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/reverb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index cf31ba62..504e35b7 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -89,9 +89,9 @@ typedef struct ALreverbState { // The gain for each output channel based on 3D panning. // NOTE: With certain output modes, we may be rendering to the dry // buffer and the "real" buffer. The two combined may be using more - // than 8 output channels, so we need some extra for the real output - // too. - ALfloat PanGain[4][MAX_OUTPUT_CHANNELS+4]; + // than the max output channels, so we need some extra for the real + // output too. + ALfloat PanGain[4][MAX_OUTPUT_CHANNELS*2]; } Early; // Decorrelator delay line. @@ -130,7 +130,7 @@ typedef struct ALreverbState { // The gain for each output channel based on 3D panning. // NOTE: Add some extra in case (see note about early pan). - ALfloat PanGain[4][MAX_OUTPUT_CHANNELS+4]; + ALfloat PanGain[4][MAX_OUTPUT_CHANNELS*2]; } Late; struct { |