From 4c23cef58f97b5f38e05318730f968730e28a179 Mon Sep 17 00:00:00 2001 From: Javier Serrano Polo Date: Sat, 22 Jul 2006 03:31:27 +0000 Subject: [PATCH] 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 --- src/core/song_editor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/song_editor.cpp b/src/core/song_editor.cpp index 233174272..a20e4c2aa 100644 --- a/src/core/song_editor.cpp +++ b/src/core/song_editor.cpp @@ -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();