From e665d456c3ec6cdd439cc318086c646eb0c64d74 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 13 Oct 2022 05:08:52 +0200 Subject: [PATCH] Optimize RB stretch/pitch, set max-process size hint --- libs/ardour/rb_effect.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/rb_effect.cc b/libs/ardour/rb_effect.cc index 070c96c00f..69e70ee4f2 100644 --- a/libs/ardour/rb_effect.cc +++ b/libs/ardour/rb_effect.cc @@ -176,6 +176,8 @@ RBEffect::run (boost::shared_ptr r, Progress* progress) stretcher.setDebugLevel (1); stretcher.setExpectedInputDuration (read_duration); + stretcher.setMaxProcessSize (bufsize); + assert (stretcher.getLatency () == 0); /* the name doesn't need to be super-precise, but allow for 2 fractional * digits just to disambiguate close but not identical FX