Clear the voice span before processing each voice

This commit is contained in:
Jean Pierre Cimalando 2020-09-23 17:52:00 +02:00
parent f3fbc1e327
commit 08dc206ad1
2 changed files with 0 additions and 3 deletions

View file

@ -794,7 +794,6 @@ void sfz::Synth::renderBlock(AudioSpan<float> 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();

View file

@ -661,8 +661,6 @@ void sfz::Voice::fillWithGenerator(AudioSpan<float> buffer) noexcept
} else {
const auto numFrames = buffer.getNumFrames();
buffer.fill(0.0f);
auto frequencies = resources.bufferPool.getBuffer(numFrames);
if (!frequencies)
return;