From d1f8b78dd418c1527bd26da9fbf6af1f3a430079 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 10 Sep 2018 03:19:41 -0700 Subject: Avoid a couple line count assumptions --- Alc/effects/reverb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc') diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 0d5e5172..c033e4f0 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -1215,7 +1215,7 @@ static void EarlyReflection_Unfaded(ALreverbState *State, ALsizei offset, const for(i = 0;i < todo;i++) out[j][i] = DelayLineOut(&early_delay, early_feedb_tap++, j)*early_feedb_coeff + temps[j][i]; - DelayLineIn(&early_delay, offset, 3-j, temps[j], todo); + DelayLineIn(&early_delay, offset, NUM_LINES-1-j, temps[j], todo); } /* Also write the result back to the main delay line for the late reverb @@ -1279,7 +1279,7 @@ static void EarlyReflection_Faded(ALreverbState *State, ALsizei offset, const AL ) + temps[j][i]; fadeCount += 1.0f; } - DelayLineIn(&early_delay, offset, 3-j, temps[j], todo); + DelayLineIn(&early_delay, offset, NUM_LINES-1-j, temps[j], todo); } late_feed_tap = offset - State->LateFeedTap; -- cgit v1.2.3