summaryrefslogtreecommitdiff
path: root/muse2/muse/song.cpp
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-01-15 22:54:12 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-01-15 22:54:12 +0000
commitdfc1ba699f837700a005a218da56e17016965f4d (patch)
treeab8340a4ee4f202f4f70f0eabcfa87d55bee15a6 /muse2/muse/song.cpp
parent50e1ec05dd9034a7d328a5f3f27979a3d32c7706 (diff)
project dialog optional and rec wave bug fixed
Diffstat (limited to 'muse2/muse/song.cpp')
-rw-r--r--muse2/muse/song.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/muse2/muse/song.cpp b/muse2/muse/song.cpp
index 3ac818e5..42c9ce77 100644
--- a/muse2/muse/song.cpp
+++ b/muse2/muse/song.cpp
@@ -1073,6 +1073,9 @@ void Song::clearTrackRec()
//---------------------------------------------------------
void Song::setRecord(bool f, bool autoRecEnable)
{
+ if(debugMsg)
+ printf("setRecord recordflag =%d f(record state)=%d autoRecEnable=%d\n", recordFlag, f, autoRecEnable);
+
if (f && museProject == museProjectInitPath ) { // check that there is a project stored before commencing
// no project, we need to create one.
if (!muse->saveAs())
@@ -1121,8 +1124,9 @@ void Song::setRecord(bool f, bool autoRecEnable)
}
// prepare recording of wave files for all record enabled wave tracks
for (iWaveTrack i = wtl->begin(); i != wtl->end(); ++i) {
- if((*i)->recordFlag())
- {
+ if((*i)->recordFlag() || (selectedTrack == (*i) && autoRecEnable)) // prepare if record flag or if it is set to recenable
+ { // setRecordFlag may take too long time to complete
+ // so we try this case specifically
(*i)->prepareRecording();
}
}