From 08dc206ad1de56f2591d3624183e3aca1c99da17 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 23 Sep 2020 17:52:00 +0200 Subject: [PATCH] Clear the voice span before processing each voice --- src/sfizz/Synth.cpp | 1 - src/sfizz/Voice.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/sfizz/Synth.cpp b/src/sfizz/Synth.cpp index e63803c1d..78dd7336a 100644 --- a/src/sfizz/Synth.cpp +++ b/src/sfizz/Synth.cpp @@ -794,7 +794,6 @@ void sfz::Synth::renderBlock(AudioSpan buffer) noexcept activeVoices = 0; { // Main render block ScopedTiming logger { callbackBreakdown.renderMethod, ScopedTiming::Operation::addToDuration }; - tempSpan->fill(0.0f); tempMixSpan->fill(0.0f); resources.filePool.cleanupPromises(); diff --git a/src/sfizz/Voice.cpp b/src/sfizz/Voice.cpp index bc952482c..d165d4266 100644 --- a/src/sfizz/Voice.cpp +++ b/src/sfizz/Voice.cpp @@ -661,8 +661,6 @@ void sfz::Voice::fillWithGenerator(AudioSpan buffer) noexcept } else { const auto numFrames = buffer.getNumFrames(); - buffer.fill(0.0f); - auto frequencies = resources.bufferPool.getBuffer(numFrames); if (!frequencies) return;