From 87902fa3b21b5bba22a9d8cddabb9ce3e1303c94 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 19 Feb 2019 20:51:10 -0800 Subject: Use the right macro for the number of reverb panning gains --- Alc/effects/reverb.cpp | 4 ++-- 1 file 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]); } -- cgit v1.2.3