13
0

libardour: start transport when handling UI trigger requests

This commit is contained in:
Paul Davis 2021-07-27 20:39:40 -06:00
parent 4a700f270d
commit 33fed0f689

View File

@ -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]);
}