InstrumentTrack: new method silenceAllNotes()

Added new method silenceAllNotes() which is a replacement for
invalidateAllMyNPH() and also resets m_runningMidiNotes array.

silenceAllNotes() is now used in destructor as well.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
(cherry picked from commit 3c9859da9f)
This commit is contained in:
Tobias Doerffel
2009-06-10 23:40:58 +02:00
parent 57c4a5abc5
commit 93a19e43f1
2 changed files with 26 additions and 23 deletions

View File

@@ -75,7 +75,8 @@ public:
const midiTime & _time );
virtual void processOutEvent( const midiEvent & _me,
const midiTime & _time );
// silence all running notes played by this track
void silenceAllNotes();
f_cnt_t beatLen( notePlayHandle * _n ) const;
@@ -194,8 +195,6 @@ protected:
{
return "instrumenttrack";
}
// invalidates all note-play-handles linked to this instrument
void invalidateAllMyNPH( void );
protected slots: