13
0

add state methods to TriggerBox (stubs for now)

This commit is contained in:
Paul Davis 2021-07-17 16:13:49 -06:00
parent b41e240f10
commit 84790dff1d
2 changed files with 16 additions and 0 deletions

View File

@ -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*> _trigger_queue;

View File

@ -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<AudioRegion> r)