Permalink
Browse files

PlayHandle: Zero out buffer before processing

Fixes buffer noises when instruments don't write the whole buffer, such as
bitinvader. Related:
* #3884 (comment): #3884 (comment)
* #3883
# #3383
  • Loading branch information...
lukas-w committed Oct 17, 2017
1 parent 3e90e37 commit 6fc4577f102e5bb60cc246a426fb9ed8b4ac3be9
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/PlayHandle.cpp
View
@@ -54,6 +54,7 @@ void PlayHandle::doProcessing()
if( m_usesBuffer )
{
m_bufferReleased = false;
BufferManager::clear(m_playHandleBuffer, Engine::mixer()->framesPerPeriod());
play( buffer() );
}
else

0 comments on commit 6fc4577

Please sign in to comment.