libardour: start transport when handling UI trigger requests
This commit is contained in:
parent
4a700f270d
commit
33fed0f689
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user