#include "ardour/stretch.h"
#ifdef USE_RUBBERBAND
-#include "rubberband/RubberBandStretcher.h"
+#include <rubberband/RubberBandStretcher.h>
using namespace RubberBand;
#endif
}
if ((aret = time_fx (audio, fraction, false)) != 0) {
+ commit_reversible_command ();
return aret;
}
if (ret == 0) {
commit_reversible_command ();
+ } else {
+ abort_reversible_command ();
}
return ret;
Editor::time_fx (RegionList& regions, float val, bool pitching)
{
delete current_timefx;
- current_timefx = 0;
+ current_timefx = new TimeFXDialog (*this, pitching);
+ current_timefx->regions = regions;
/* See if we have any audio regions on our list */
RegionList::iterator i = regions.begin ();
return 0;
}
- current_timefx = new TimeFXDialog (*this, pitching);
- current_timefx->regions = regions;
-
switch (current_timefx->run ()) {
case RESPONSE_ACCEPT:
break;
by the GUI ...
*/
+#ifdef PLATFORM_WINDOWS
+ Glib::usleep(2 * G_USEC_PER_SEC);
+#else
struct timespec t = { 2, 0 };
nanosleep (&t, 0);
-
+#endif
return 0;
}