diff options
author | Robert Jonsson <spamatica@gmail.com> | 2010-12-27 00:39:58 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2010-12-27 00:39:58 +0000 |
commit | 8092776083f70a25b8615c7b8d6299e2daba8865 (patch) | |
tree | 43b919a724811690dfbff86c043ced76e632e2f8 /muse2/muse/audiotrack.cpp | |
parent | 64e73dd6d68da03c6c7fad0d314f237703e3996d (diff) |
create new project dialog added
Diffstat (limited to 'muse2/muse/audiotrack.cpp')
-rw-r--r-- | muse2/muse/audiotrack.cpp | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/muse2/muse/audiotrack.cpp b/muse2/muse/audiotrack.cpp index 0ced1b8b..959ce7f2 100644 --- a/muse2/muse/audiotrack.cpp +++ b/muse2/muse/audiotrack.cpp @@ -1587,13 +1587,13 @@ bool AudioTrack::setRecordFlag1(bool f) SF_FORMAT_WAV | SF_FORMAT_FLOAT, _channels, sampleRate); } - if(_recFile->openWrite()) - { - QMessageBox::critical(NULL, "MusE write error.", "Error creating target wave file\n" - "Check your configuration."); - return false; - - } +// if(_recFile->openWrite()) +// { +// QMessageBox::critical(NULL, "MusE write error.", "Error creating target wave file\n" +// "Check your configuration."); +// return false; +// +// } if (debugMsg) printf("AudioNode::setRecordFlag1: create internal file %s\n", _recFile->path().toLatin1().constData()); @@ -1619,6 +1619,16 @@ bool AudioTrack::setRecordFlag1(bool f) } return true; } +bool AudioTrack::prepareRecording() +{ + if(_recFile->openWrite()) + { + QMessageBox::critical(NULL, "MusE write error.", "Error creating target wave file\n" + "Check your configuration."); + return false; + + } +} double AudioTrack::auxSend(int idx) const { if (unsigned(idx) >= _auxSend.size()) { |