Index: sooperlooper-1.6.5/src/looper.cpp =================================================================== --- sooperlooper-1.6.5.orig/src/looper.cpp +++ sooperlooper-1.6.5/src/looper.cpp @@ -166,11 +166,17 @@ Looper::initialize (unsigned int index, nframes_t srate = _driver->get_samplerate(); // rubberband stretch stuff +#if defined(RUBBERBAND_API_MAJOR_VERSION) && RUBBERBAND_API_MAJOR_VERSION >= 2 + _in_stretcher = new RubberBandStretcher(srate, _chan_count, + RubberBandStretcher::OptionProcessRealTime | RubberBandStretcher::OptionTransientsCrisp | RubberBandStretcher::OptionPhaseLaminar); + _out_stretcher = new RubberBandStretcher(srate, _chan_count, + RubberBandStretcher::OptionProcessRealTime | RubberBandStretcher::OptionTransientsCrisp | RubberBandStretcher::OptionPhaseLaminar); +#else _in_stretcher = new RubberBandStretcher(srate, _chan_count, RubberBandStretcher::OptionProcessRealTime | RubberBandStretcher::OptionTransientsCrisp | RubberBandStretcher::OptionPhaseAdaptive); _out_stretcher = new RubberBandStretcher(srate, _chan_count, RubberBandStretcher::OptionProcessRealTime | RubberBandStretcher::OptionTransientsCrisp | RubberBandStretcher::OptionPhaseAdaptive); - +#endif set_buffer_size(_driver->get_buffersize());