made muting automation-tracks work (closes #2010770)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1275 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-07-05 22:19:12 +00:00
parent 58cd1c74a5
commit eb33f6e815
2 changed files with 8 additions and 0 deletions

View File

@@ -55,6 +55,11 @@ automationTrack::~automationTrack()
bool automationTrack::play( const midiTime & _start, const fpp_t _frames,
const f_cnt_t _frame_base, Sint16 _tco_num )
{
if( isMuted() )
{
return( FALSE );
}
tcoVector tcos;
getTCOsInRange( tcos, _start, _start + static_cast<int>(
_frames / engine::framesPerTick() ) );