diff options
author | Chris Robinson <[email protected]> | 2018-09-10 03:19:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-09-10 03:19:41 -0700 |
commit | d1f8b78dd418c1527bd26da9fbf6af1f3a430079 (patch) | |
tree | eb9554b1db98cd4c17c55174a3eff070eb4eebbb /Alc/effects | |
parent | 4bdab0051fd6c7307ccfc6a07c23b95ae670fc63 (diff) |
Avoid a couple line count assumptions
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/reverb.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |