13
0

triggerbox: we're doing offline RB processing, not realtime

This commit is contained in:
Paul Davis 2021-08-06 13:39:22 -06:00
parent 44176aa2e4
commit 5ac3d2c581

View File

@ -522,7 +522,7 @@ AudioTrigger::set_length (timecnt_t const & newlen)
const uint32_t nchans = ar->n_channels(); const uint32_t nchans = ar->n_channels();
RubberBandStretcher::Options options = RubberBandStretcher::Option (RubberBandStretcher::OptionProcessRealTime|RubberBandStretcher::OptionStretchPrecise); RubberBandStretcher::Options options = RubberBandStretcher::Option (RubberBandStretcher::OptionProcessOffline|RubberBandStretcher::OptionStretchPrecise);
RubberBandStretcher stretcher (_box.session().sample_rate(), nchans, options, 1.0, 1.0); RubberBandStretcher stretcher (_box.session().sample_rate(), nchans, options, 1.0, 1.0);
/* Compute stretch ratio */ /* Compute stretch ratio */