From 6fc4577f102e5bb60cc246a426fb9ed8b4ac3be9 Mon Sep 17 00:00:00 2001 From: Lukas W Date: Tue, 17 Oct 2017 20:24:19 +0200 Subject: [PATCH] PlayHandle: Zero out buffer before processing Fixes buffer noises when instruments don't write the whole buffer, such as bitinvader. Related: * #3884 (comment): https://github.com/LMMS/lmms/pull/3884#issuecomment-337170598 * #3883 # #3383 --- src/core/PlayHandle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/PlayHandle.cpp b/src/core/PlayHandle.cpp index 5481ea3e2..9e92019a6 100644 --- a/src/core/PlayHandle.cpp +++ b/src/core/PlayHandle.cpp @@ -54,6 +54,7 @@ void PlayHandle::doProcessing() if( m_usesBuffer ) { m_bufferReleased = false; + BufferManager::clear(m_playHandleBuffer, Engine::mixer()->framesPerPeriod()); play( buffer() ); } else