summaryrefslogtreecommitdiff
blob: 00242ac7aee350e7ca4eeb1ea373aaa4a9749c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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());