play the automation track only when playing song

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@261 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Javier Serrano Polo
2006-07-22 03:31:27 +00:00
parent d21341e487
commit 4c23cef58f

View File

@@ -1033,10 +1033,13 @@ void songEditor::processNextBuffer( void )
m_playPos[m_playMode].currentFrame();
}
m_automation_track->play( m_playPos[m_playMode],
if( m_playMode == PLAY_SONG )
{
m_automation_track->play( m_playPos[m_playMode],
m_playPos[m_playMode].currentFrame(),
played_frames, total_frames_played,
tco_num );
}
// loop through all tracks and play them if they're not muted
for( trackVector::iterator it = tv.begin(); it != tv.end();