Unnecessary memset of the buffer

This commit is contained in:
paulfd 2019-08-29 11:05:28 +02:00
parent 15d28c46ed
commit c7184e531c

View file

@ -64,7 +64,6 @@ public:
for (auto& voice : voices) { for (auto& voice : voices) {
voice->renderBlock(tempSpan); voice->renderBlock(tempSpan);
buffer.add(tempSpan); buffer.add(tempSpan);
tempBuffer.fill(0.0f);
} }
} }
@ -188,7 +187,7 @@ private:
std::random_device rd {}; std::random_device rd {};
std::mt19937 randomGenerator { rd() }; std::mt19937 randomGenerator { rd() };
std::uniform_real_distribution<float> randNoteDistribution { 0, 1 }; std::uniform_real_distribution<float> randNoteDistribution { 0, 1 };
LEAK_DETECTOR(Synth); LEAK_DETECTOR(Synth);
}; };