summaryrefslogtreecommitdiff
path: root/muse2/muse/wave.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/wave.cpp
parent50e1ec05dd9034a7d328a5f3f27979a3d32c7706 (diff)
project dialog optional and rec wave bug fixed
Diffstat (limited to 'muse2/muse/wave.cpp')
-rw-r--r--muse2/muse/wave.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/muse2/muse/wave.cpp b/muse2/muse/wave.cpp
index b519ca70..30278c84 100644
--- a/muse2/muse/wave.cpp
+++ b/muse2/muse/wave.cpp
@@ -1044,6 +1044,9 @@ int ClipList::idx(const Clip& clip) const
//void Song::cmdAddRecordedWave(WaveTrack* track, const Pos& s, const Pos& e)
void Song::cmdAddRecordedWave(WaveTrack* track, Pos s, Pos e)
{
+ if (debugMsg)
+ printf("cmdAddRecordedWave - loopCount = %d, punchin = %d", audio->loopCount(), punchin());
+
SndFile* f = track->recFile();
if (f == 0) {
printf("cmdAddRecordedWave: no snd file for track <%s>\n",
@@ -1068,13 +1071,13 @@ void Song::cmdAddRecordedWave(WaveTrack* track, Pos s, Pos e)
// No part to be created? Delete the rec sound file.
if(s.tick() >= e.tick())
{
- QString s = f->path();
+ QString st = f->path();
delete f;
// The function which calls this function already does this immediately after. But do it here anyway.
track->setRecFile(0);
- remove(s.toLatin1().constData());
+ remove(st.toLatin1().constData());
if(debugMsg)
- printf("Song::cmdAddRecordedWave: remove file %s\n", s.toLatin1().constData());
+ printf("Song::cmdAddRecordedWave: remove file %s - start=%d end=%d\n", st.toLatin1().constData(), s.tick(), e.tick());
return;
}
// Round the start down using the Arranger part snap raster value.