X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Frb_effect.cc;h=cd597c6f5661c6f6d499a52813ea2adc0bc91c25;hb=8c04457be14673385287def048c387b3953fa8e8;hp=2749e18258585299c99afac82910677d2b6ea3d0;hpb=881d77f1e5a905009b61444670e9ec1a2aaa71ec;p=ardour.git diff --git a/libs/ardour/rb_effect.cc b/libs/ardour/rb_effect.cc index 2749e18258..cd597c6f56 100644 --- a/libs/ardour/rb_effect.cc +++ b/libs/ardour/rb_effect.cc @@ -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 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 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 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 */ @@ -375,7 +372,7 @@ RBEffect::run (boost::shared_ptr r, Progress* progress) if (buffers) { for (uint32_t i = 0; i < channels; ++i) { - delete buffers[i]; + delete [] buffers[i]; } delete [] buffers; }