#include <algorithm>
#include <cmath>
-#include <pbd/error.h>
-#include <rubberband/RubberBandStretcher.h>
+#include "pbd/error.h"
+#include "rubberband/RubberBandStretcher.h"
-#include <ardour/types.h>
-#include <ardour/stretch.h>
-#include <ardour/pitch.h>
-#include <ardour/audiofilesource.h>
-#include <ardour/session.h>
-#include <ardour/audioregion.h>
+#include "ardour/types.h"
+#include "ardour/stretch.h"
+#include "ardour/pitch.h"
+#include "ardour/audiofilesource.h"
+#include "ardour/session.h"
+#include "ardour/audioregion.h"
#include "i18n.h"
{
}
-Stretch::Stretch (Session& s, TimeFXRequest& req)
+RBStretch::RBStretch (Session& s, TimeFXRequest& req)
: RBEffect (s, req)
{
}
while (pos < read_duration && !tsr.cancel) {
nframes_t this_read = 0;
-
+
for (uint32_t i = 0; i < channels; ++i) {
this_read = 0;
if (this_read != this_time) {
error << string_compose
(_("tempoize: error reading data from %1 at %2 (wanted %3, got %4)"),
- region->name(), pos + region->position(), this_time, this_read) << endmsg;
+ region->name(), this_position, this_time, this_read) << endmsg;
goto out;
}
}
out:
- if (gain_buffer) {
- delete [] gain_buffer;
- }
+ delete [] gain_buffer;
if (buffers) {
for (uint32_t i = 0; i < channels; ++i) {