further fixes for monophonic instruments
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@510 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -794,12 +794,12 @@ void instrumentTrack::playNote( notePlayHandle * _n, bool _try_parallelizing )
|
||||
// then the current note we
|
||||
// already played everything
|
||||
// in last period and have
|
||||
// to clear it
|
||||
// to clear parts of it
|
||||
_n->noteOff();
|
||||
engine::getMixer()->clearAudioBuffer( m_audioPort->firstBuffer(),
|
||||
engine::getMixer()->framesPerPeriod() );
|
||||
engine::getMixer()->clearAudioBuffer( m_audioPort->secondBuffer(),
|
||||
engine::getMixer()->framesPerPeriod() );
|
||||
engine::getMixer()->framesPerPeriod() -
|
||||
( *youngest_note )->offset(),
|
||||
( *youngest_note )->offset() );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user