Skip to content

Commit

Permalink
PlayHandle: Zero out buffer before processing
Browse files Browse the repository at this point in the history
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 6fc4577
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/PlayHandle.cpp
Expand Up @@ -54,6 +54,7 @@ void PlayHandle::doProcessing()
if( m_usesBuffer )
{
m_bufferReleased = false;
BufferManager::clear(m_playHandleBuffer, Engine::mixer()->framesPerPeriod());
play( buffer() );
}
else
Expand Down

0 comments on commit 6fc4577

Please sign in to comment.