Allow strips to add or remove personal sends
[ardour.git] / gtk2_ardour / time_fx_dialog.cc
index be2140d9d3559e8ddfe492293752940578f418bd..c51bdcd5e2b22d7ef04974dd250e4abd303f0a42 100644 (file)
 #include <iostream>
 #include <cstdlib>
 #include <cmath>
-
 #include <string>
 
+#include <gtkmm/stock.h>
+
 #include "pbd/error.h"
 #include "pbd/pthread_utils.h"
 #include "pbd/memento_command.h"
 #include "pbd/unwind.h"
 #include "pbd/stacktrace.h"
 
-#include <gtkmm2ext/utils.h>
+#include "gtkmm2ext/utils.h"
 
 #include "audio_clock.h"
 #include "editor.h"
@@ -53,7 +54,7 @@ using namespace PBD;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 
-TimeFXDialog::TimeFXDialog (Editor& e, bool pitch, framecnt_t oldlen, framecnt_t new_length, framepos_t position)
+TimeFXDialog::TimeFXDialog (Editor& e, bool pitch, samplecnt_t oldlen, samplecnt_t new_length, samplepos_t position)
        : ArdourDialog (X_("time fx dialog"))
        , editor (e)
        , pitching (pitch)
@@ -301,7 +302,7 @@ TimeFXDialog::duration_adjustment_changed ()
 
        PBD::Unwinder<bool> uw (ignore_clock_change, true);
 
-       duration_clock->set ((framecnt_t) (original_length * (duration_adjustment.get_value()/ 100.0)));
+       duration_clock->set ((samplecnt_t) (original_length * (duration_adjustment.get_value()/ 100.0)));
 }
 
 void