From b97c5f94c63738f0b012903a395baf507c2ab328 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 11 Oct 2021 08:50:58 -0600 Subject: [PATCH] triggerbox: do nothing if disabled --- libs/ardour/triggerbox.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 022ae7427e..f9effb56bd 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -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