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:
Tobias Doerffel
2007-08-04 13:30:37 +00:00
parent 20f66eb8e3
commit be3a1e589d
2 changed files with 14 additions and 8 deletions

View File

@@ -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;
}
}