triggerbox: fix passthru handling and default to off

This commit is contained in:
Paul Davis
2021-12-16 09:31:12 -07:00
parent 9593cb97d1
commit 899c217511
2 changed files with 3 additions and 3 deletions

View File

@@ -481,7 +481,7 @@ class LIBARDOUR_API TriggerBox : public Processor
void add_midi_sidechain (std::string const & name);
bool pass_thru() const { return _pass_thru; }
bool pass_thru() const { return _requests.pass_thru; }
void set_pass_thru (bool yn);
void request_reload (int32_t slot, void*);
@@ -520,7 +520,7 @@ class LIBARDOUR_API TriggerBox : public Processor
std::atomic<bool> stop_all;
std::atomic<bool> pass_thru;
Requests () : stop_all (false), pass_thru (true) {}
Requests () : stop_all (false), pass_thru (false) {}
};
static Temporal::BBT_Offset _assumed_trigger_duration;

View File

@@ -2021,7 +2021,7 @@ TriggerBox::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
return;
}
_pass_thru = _requests.pass_thru.exchange (false);
_pass_thru = _requests.pass_thru.load ();
bool allstop = _requests.stop_all.exchange (false);
/* STEP TWO: if latency compensation tells us that we haven't really