From fda4b5931c364655332a08fedb24adb6e4eba6d8 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 30 Sep 2020 19:35:43 +0200 Subject: [PATCH] Eliminate a code repetition --- src/sfizz/Voice.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/sfizz/Voice.cpp b/src/sfizz/Voice.cpp index 0b1ee1aa..dbeb6405 100644 --- a/src/sfizz/Voice.cpp +++ b/src/sfizz/Voice.cpp @@ -710,11 +710,6 @@ void sfz::Voice::fillWithData(AudioSpan buffer) noexcept // Crossfade Out // -> fade out signal nearing the loop end { - // compute crossfade coeffs - for (unsigned i = 0; i < ptSize; ++i) { - float pos = ptIndices[i] + ptCoeffs[i]; - xfCoeff[i] = (pos - loopXfOutStart) / loopXfadeSize; - } // compute out curve const Curve& xfOut = resources.curves.getCurve(6); absl::Span xfCurve = xfadeTemp[1]->first(ptSize);