Clear the voice span before processing each voice
This commit is contained in:
parent
f3fbc1e327
commit
08dc206ad1
2 changed files with 0 additions and 3 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue