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:
* LMMS#3884 (comment): LMMS#3884 (comment)
* LMMS#3883
# LMMS#3383
  • Loading branch information
lukas-w committed Oct 17, 2017
1 parent 1ed3974 commit 05c2c53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/PlayHandle.cpp
Original file line number Diff line number Diff line change
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 05c2c53

Please sign in to comment.