triggerbox: add struct and ringbuffer for recording cues
This commit is contained in:
parent
d50e854b05
commit
f63c049d87
@ -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…
Reference in New Issue
Block a user