From 33fed0f6897c7def76ea7154eabf5e2852ac4d72 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 27 Jul 2021 20:39:40 -0600 Subject: [PATCH] libardour: start transport when handling UI trigger requests --- libs/ardour/triggerbox.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 4dfa0169e6..b1b529cb24 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -155,7 +155,7 @@ TriggerBox::add_trigger (Trigger* trigger) bool TriggerBox::queue_trigger (Trigger* trigger) { - return _trigger_queue.write (&trigger, 1) == 1; + return _trigger_queue.write (&trigger, 1) == 1; } void @@ -177,6 +177,13 @@ TriggerBox::process_ui_trigger_requests () pending_on_triggers.push_back (t); } + if (vec.len[0] || vec.len[1]) { + + if (!_session.transport_state_rolling()) { + _session.start_transport_from_processor (); + } + } + _trigger_queue.increment_read_idx (vec.len[0] + vec.len[1]); }