X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_timefx.cc;h=d78340df65e0ea5295e79503d65f661c68e19de5;hb=3242f16d445203425230e12f002dd79f16fc1881;hp=2528c823b7996ac9f75346ece542476c47378f87;hpb=e279b9892b467aa823e253d97b6e9504cca0e252;p=ardour.git diff --git a/gtk2_ardour/editor_timefx.cc b/gtk2_ardour/editor_timefx.cc index 2528c823b7..d78340df65 100644 --- a/gtk2_ardour/editor_timefx.cc +++ b/gtk2_ardour/editor_timefx.cc @@ -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; @@ -403,7 +406,7 @@ Editor::timefx_thread (void *arg) */ #ifdef PLATFORM_WINDOWS - Sleep(2000); + Glib::usleep(2 * G_USEC_PER_SEC); #else struct timespec t = { 2, 0 }; nanosleep (&t, 0);