From 981dfd67e78b7e22e74148d0decdfd61849249da Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 27 Aug 2024 09:42:31 -0600 Subject: [PATCH] call our "transport stopped" code path when JACK transport stops this fixes issues with MIDI region recording, which otherwise never goes through the code path required to "fix" the nascent data into sources and regions. --- libs/ardour/session_process.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index 33b188161c..2c3b1fe982 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -1258,6 +1258,12 @@ Session::plan_master_strategy_engine (pframes_t nframes, double master_speed, sa DEBUG_TRACE (DEBUG::Slave, "JACK transport: not moving\n"); + if (!transport_stopped_or_stopping()) { + DEBUG_TRACE (DEBUG::Slave, "JACK Transport: jack is stopped, we are not, so stop ...\n"); + TFSM_STOP (false, false); + return 1.0; + } + const samplecnt_t wlp = worst_latency_preroll_buffer_size_ceil (); if (delta != wlp) {