NOOP, remove trailing tabs/whitespace.
[ardour.git] / gtk2_ardour / editor_timefx.cc
index e43dae9e2b4cf2efe3f6e4fed88f0453300ccb84..d78340df65e0ea5295e79503d65f661c68e19de5 100644 (file)
@@ -45,7 +45,7 @@
 #include "ardour/stretch.h"
 
 #ifdef USE_RUBBERBAND
-#include "rubberband/RubberBandStretcher.h"
+#include <rubberband/RubberBandStretcher.h>
 using namespace RubberBand;
 #endif
 
@@ -76,6 +76,7 @@ Editor::time_stretch (RegionSelection& regions, float fraction)
        }
 
        if ((aret = time_fx (audio, fraction, false)) != 0) {
+               commit_reversible_command ();
                return aret;
        }
 
@@ -132,6 +133,8 @@ Editor::pitch_shift (RegionSelection& regions, float fraction)
 
        if (ret == 0) {
                commit_reversible_command ();
+       } else {
+               abort_reversible_command ();
        }
 
        return ret;
@@ -158,7 +161,7 @@ Editor::time_fx (RegionList& regions, float val, bool pitching)
                do_timefx ();
                return 0;
        }
-       
+
        switch (current_timefx->run ()) {
        case RESPONSE_ACCEPT:
                break;
@@ -402,8 +405,8 @@ Editor::timefx_thread (void *arg)
            by the GUI ...
         */
 
-#ifdef WIN32
-       Sleep(2000);
+#ifdef PLATFORM_WINDOWS
+       Glib::usleep(2 * G_USEC_PER_SEC);
 #else
         struct timespec t = { 2, 0 };
         nanosleep (&t, 0);