Fix pre-roll cycle-split
authorRobin Gareus <robin@gareus.org>
Wed, 11 Oct 2017 23:49:05 +0000 (01:49 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 11 Oct 2017 23:49:05 +0000 (01:49 +0200)
previously this worked as long as the cycle was only
needed to be split once.

libs/ardour/session_process.cc

index d16f7d3b0cad3f6ee12ed624e28e28467f865454..fe946f865d6f08307687ff17ed766d54c88f86a1 100644 (file)
@@ -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) {