Skip to content

Commit

Permalink
Clear the voice span before processing each voice
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed Sep 23, 2020
1 parent f3fbc1e commit 08dc206
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/sfizz/Synth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 0 additions & 2 deletions src/sfizz/Voice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 08dc206

Please sign in to comment.