NO-OP session-property comments
[ardour.git] / libs / ardour / rb_effect.cc
index 2749e18258585299c99afac82910677d2b6ea3d0..bc127e2d816f025727653ebf4e163dbe881212f7 100644 (file)
@@ -32,7 +32,7 @@
 #include "ardour/stretch.h"
 #include "ardour/types.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -209,8 +209,6 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress* progress)
 
                        for (uint32_t i = 0; i < channels; ++i) {
 
-                               this_read = 0;
-
                                framepos_t this_time;
                                this_time = min(bufsize, read_duration - pos);
 
@@ -251,7 +249,6 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress* progress)
 
                        for (uint32_t i = 0; i < channels; ++i) {
 
-                               this_read = 0;
                                framepos_t this_time;
                                this_time = min(bufsize, read_duration - pos);
 
@@ -355,9 +352,9 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress* progress)
                                          shift);
                (*x)->set_master_sources (region->master_sources());
                /* multiply the old (possibly previously stretched) region length by the extra
-                  stretch this time around to get its new length
+                  stretch this time around to get its new length. this is a non-music based edit atm.
                */
-               (*x)->set_length ((*x)->length() * tsr.time_fraction);
+               (*x)->set_length ((*x)->length() * tsr.time_fraction, 0);
        }
 
        /* stretch region gain envelope */