From eaa7b0dd7cc958096659a281c588041edeccb4a2 Mon Sep 17 00:00:00 2001 From: Hyunjin Song Date: Tue, 17 Oct 2017 00:14:47 +0900 Subject: [PATCH] Fix sfxr buffer noise (#3883) --- plugins/sfxr/sfxr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sfxr/sfxr.cpp b/plugins/sfxr/sfxr.cpp index b0222a0b12b..30310576176 100644 --- a/plugins/sfxr/sfxr.cpp +++ b/plugins/sfxr/sfxr.cpp @@ -464,6 +464,7 @@ void sfxrInstrument::playNote( NotePlayHandle * _n, sampleFrame * _working_buffe } else if( static_cast(_n->m_pluginData)->isPlaying() == false ) { + memset(_working_buffer + offset, 0, sizeof(sampleFrame) * frameNum); _n->noteOff(); return; }