13
0

triggerbox: do nothing if disabled

This commit is contained in:
Paul Davis 2021-10-11 08:50:58 -06:00
parent a2a36de98f
commit b97c5f94c6

View File

@ -1254,6 +1254,10 @@ TriggerBox::process_midi_trigger_requests (BufferSet& bufs)
void
TriggerBox::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool result_required)
{
if (!_active) {
return;
}
if (start_sample < 0) {
/* we can't do anything under these conditions (related to
latency compensation