mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
triggerbox: add struct and ringbuffer for recording cues
This commit is contained in:
parent
d50e854b05
commit
f63c049d87
2 changed files with 9 additions and 0 deletions
|
|
@ -522,6 +522,12 @@ class LIBARDOUR_API TriggerBoxThread
|
|||
void delete_trigger (Trigger*);
|
||||
};
|
||||
|
||||
struct CueRecord {
|
||||
int32_t cue_number;
|
||||
timepos_t when;
|
||||
};
|
||||
|
||||
typedef PBD::RingBuffer<CueRecord> CueRecords;
|
||||
|
||||
class LIBARDOUR_API TriggerBox : public Processor
|
||||
{
|
||||
|
|
@ -529,6 +535,8 @@ class LIBARDOUR_API TriggerBox : public Processor
|
|||
TriggerBox (Session&, DataType dt);
|
||||
~TriggerBox ();
|
||||
|
||||
static CueRecords cue_records;
|
||||
|
||||
void run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool result_required);
|
||||
bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
|
||||
bool configure_io (ChanCount in, ChanCount out);
|
||||
|
|
|
|||
|
|
@ -2183,6 +2183,7 @@ TriggerBox::TriggerMidiMapMode TriggerBox::_midi_map_mode (TriggerBox::Sequentia
|
|||
int TriggerBox::_first_midi_note = 60;
|
||||
std::atomic<int> TriggerBox::active_trigger_boxes (0);
|
||||
TriggerBoxThread* TriggerBox::worker = 0;
|
||||
CueRecords TriggerBox::cue_records (256);
|
||||
|
||||
void
|
||||
TriggerBox::init ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue