From 5c24db24020fc37a4c7fb52ffa7777c0a12fbe37 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 12 Oct 2017 01:49:05 +0200 Subject: [PATCH] Fix pre-roll cycle-split previously this worked as long as the cycle was only needed to be split once. --- libs/ardour/session_process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index d16f7d3b0c..fe946f865d 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -302,7 +302,7 @@ Session::process_with_events (pframes_t nframes) assert (_count_in_samples == 0 || _remaining_latency_preroll == 0 || _count_in_samples == _remaining_latency_preroll); - if (_count_in_samples > 0 || _remaining_latency_preroll > 0) { + while (_count_in_samples > 0 || _remaining_latency_preroll > 0) { samplecnt_t ns; if (_remaining_latency_preroll > 0) {