summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-07-28 17:20:06 +0000
committerFlorian Jung <flo@windfisch.org>2011-07-28 17:20:06 +0000
commitd8b982306e85b2a29f793d50cab2a424c1715c0d (patch)
tree389dbe1037fdb0f2639e5610f3d6c394ed8c9233 /muse2/muse/app.cpp
parent7193ff9d74fe76737d28ba77bf3dcadac19d2895 (diff)
parent346fbb6c864890959ac2e3a7f4549d6bb202373e (diff)
merged with trunk
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index fb07955f..3abb116f 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -3114,6 +3114,27 @@ void MusE::bounceToFile(AudioOutput* ao)
song->setPlay(true);
}
+
+//---------------------------------------------------------
+// checkRegionNotNull
+// return true if (rPos - lPos) <= 0
+//---------------------------------------------------------
+
+bool MusE::checkRegionNotNull()
+ {
+ int start = song->lPos().frame();
+ int end = song->rPos().frame();
+ if (end - start <= 0) {
+ QMessageBox::critical(this,
+ tr("MusE: Bounce"),
+ tr("set left/right marker for bounce range")
+ );
+ return true;
+ }
+ return false;
+ }
+
+
#ifdef HAVE_LASH
//---------------------------------------------------------
// lash_idle_cb