diff options
author | Chris Robinson <[email protected]> | 2019-02-19 20:51:10 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-19 20:51:10 -0800 |
commit | 87902fa3b21b5bba22a9d8cddabb9ce3e1303c94 (patch) | |
tree | ffea4b16e1df5e4aab9db1fad75ceab6c73dc08f /Alc | |
parent | 194fcb6bb7d81c5a82c9437c7ed7dfdb7da0a3e1 (diff) |
Use the right macro for the number of reverb panning gains
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/effects/reverb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/reverb.cpp b/Alc/effects/reverb.cpp index 6f007046..11e3e56c 100644 --- a/Alc/effects/reverb.cpp +++ b/Alc/effects/reverb.cpp @@ -785,10 +785,10 @@ ALvoid Update3DPanning(const ALfloat *ReflectionsPan, const ALfloat *LateReverbP alu::Matrix latemat{MatrixMult(GetTransformFromVector(LateReverbPan), A2B)}; State->mOutBuffer = target.FOAOut->Buffer; State->mOutChannels = target.FOAOut->NumChannels; - for(ALsizei i{0};i < MAX_EFFECT_CHANNELS;i++) + for(ALsizei i{0};i < NUM_LINES;i++) ComputePanGains(target.FOAOut, earlymat[i].data(), earlyGain, State->mEarly.PanGain[i]); - for(ALsizei i{0};i < MAX_EFFECT_CHANNELS;i++) + for(ALsizei i{0};i < NUM_LINES;i++) ComputePanGains(target.FOAOut, latemat[i].data(), lateGain, State->mLate.PanGain[i]); } |