Eliminate a code repetition

This commit is contained in:
Jean Pierre Cimalando 2020-09-30 19:35:43 +02:00
parent 7a5fd53001
commit fda4b5931c

View file

@ -710,11 +710,6 @@ void sfz::Voice::fillWithData(AudioSpan<float> 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<float> xfCurve = xfadeTemp[1]->first(ptSize);