diff options
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r-- | muse2/muse/app.cpp | 21 |
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 |