mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
provide rec-enable state for TriggerBoxen
This commit is contained in:
parent
052ef18c4a
commit
1fa42dcb95
3 changed files with 17 additions and 1 deletions
|
|
@ -759,6 +759,10 @@ class LIBARDOUR_API TriggerBox : public Processor, public std::enable_shared_fro
|
|||
static void set_cue_recording (bool yn);
|
||||
static PBD::Signal0<void> CueRecordingChanged;
|
||||
|
||||
void set_record_enabled (bool yn);
|
||||
bool record_enabled() const { return _record_enabled; }
|
||||
PBD::Signal0<void> RecEnableChanged;
|
||||
|
||||
void run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool result_required);
|
||||
void run_cycle (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes);
|
||||
bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
|
||||
|
|
@ -907,6 +911,7 @@ class LIBARDOUR_API TriggerBox : public Processor, public std::enable_shared_fro
|
|||
bool _locate_armed;
|
||||
bool _cancel_locate_armed;
|
||||
bool _fast_forwarding;
|
||||
bool _record_enabled;
|
||||
|
||||
PBD::PCGRand _pcg;
|
||||
|
||||
|
|
|
|||
|
|
@ -418,7 +418,10 @@ Track::update_input_meter ()
|
|||
void
|
||||
Track::record_enable_changed (bool, Controllable::GroupControlDisposition)
|
||||
{
|
||||
_disk_writer->set_record_enabled (_record_enable_control->get_value());
|
||||
bool yn = _record_enable_control->get_value();
|
||||
|
||||
_disk_writer->set_record_enabled (yn);
|
||||
_triggerbox->set_record_enabled (yn);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -3270,6 +3270,7 @@ TriggerBox::TriggerBox (Session& s, DataType dt)
|
|||
, _locate_armed (false)
|
||||
, _cancel_locate_armed (false)
|
||||
, _fast_forwarding (false)
|
||||
, _record_enabled (false)
|
||||
, requests (1024)
|
||||
{
|
||||
set_display_to_user (false);
|
||||
|
|
@ -3294,6 +3295,13 @@ TriggerBox::TriggerBox (Session& s, DataType dt)
|
|||
_session.config.ParameterChanged.connect_same_thread (*this, boost::bind (&TriggerBox::parameter_changed, this, _1));
|
||||
}
|
||||
|
||||
void
|
||||
TriggerBox::set_record_enabled (bool yn)
|
||||
{
|
||||
_record_enabled = yn;
|
||||
RecEnableChanged (); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
void
|
||||
TriggerBox::set_cue_recording (bool yn)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue