triggerbox: skeleton for requests sent to a TriggerBox (to change state)

This commit is contained in:
Paul Davis 2021-11-04 09:50:34 -06:00
parent 241948635b
commit b0176c21fb
2 changed files with 18 additions and 0 deletions

View File

@ -429,6 +429,23 @@ class LIBARDOUR_API TriggerBox : public Processor
static TriggerMidiMapMode _midi_map_mode;
static std::atomic<int32_t> _pending_scene;
static std::atomic<int32_t> _active_scene;
struct Request {
enum Type {
Use,
Reload,
};
Type type;
union {
Trigger* trigger;
};
};
typedef PBD::RingBuffer<Request> RequestBuffer;
RequestBuffer requests;
};
namespace Properties {

View File

@ -1335,6 +1335,7 @@ TriggerBox::TriggerBox (Session& s, DataType dt)
, up_next (0)
, currently_playing (0)
, _stop_all (false)
, requests (1024)
{
/* default number of possible triggers. call ::add_trigger() to increase */