triggerbox: do nothing if disabled
This commit is contained in:
parent
a2a36de98f
commit
b97c5f94c6
@ -1254,6 +1254,10 @@ TriggerBox::process_midi_trigger_requests (BufferSet& bufs)
|
|||||||
void
|
void
|
||||||
TriggerBox::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool result_required)
|
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) {
|
if (start_sample < 0) {
|
||||||
/* we can't do anything under these conditions (related to
|
/* we can't do anything under these conditions (related to
|
||||||
latency compensation
|
latency compensation
|
||||||
|
Loading…
Reference in New Issue
Block a user