From c7184e531c14f496146c34bed557b1758fb027d5 Mon Sep 17 00:00:00 2001 From: paulfd Date: Thu, 29 Aug 2019 11:05:28 +0200 Subject: [PATCH] Unnecessary memset of the buffer --- sources/Synth.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sources/Synth.h b/sources/Synth.h index 17af967b..e9bcd4fe 100644 --- a/sources/Synth.h +++ b/sources/Synth.h @@ -64,7 +64,6 @@ public: for (auto& voice : voices) { voice->renderBlock(tempSpan); buffer.add(tempSpan); - tempBuffer.fill(0.0f); } } @@ -188,7 +187,7 @@ private: std::random_device rd {}; std::mt19937 randomGenerator { rd() }; std::uniform_real_distribution randNoteDistribution { 0, 1 }; - + LEAK_DETECTOR(Synth); };