From 84790dff1d413692d9559f806068837d6c8c2cdb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 17 Jul 2021 16:13:49 -0600 Subject: [PATCH] add state methods to TriggerBox (stubs for now) --- libs/ardour/ardour/triggerbox.h | 3 +++ libs/ardour/triggerbox.cc | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/libs/ardour/ardour/triggerbox.h b/libs/ardour/ardour/triggerbox.h index 24f002a36a..719b93fbdd 100644 --- a/libs/ardour/ardour/triggerbox.h +++ b/libs/ardour/ardour/triggerbox.h @@ -76,6 +76,9 @@ class LIBARDOUR_API TriggerBox : public Processor bool queue_trigger (Trigger*); void add_trigger (Trigger*); + XMLNode& get_state (void); + int set_state (const XMLNode&, int version); + private: PBD::RingBuffer _trigger_queue; diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 8e26123393..f352e6d712 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -177,6 +177,19 @@ TriggerBox::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp } } +XMLNode& +TriggerBox::get_state (void) +{ + return Processor::get_state (); +} + +int +TriggerBox::set_state (const XMLNode&, int version) +{ + return 0; +} + + /*--------------------*/ AudioTrigger::AudioTrigger (boost::shared_ptr r)