mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 14:17:21 +01:00
provide a class-level static PBD::Signal for Trigger (Slot) arming
This commit is contained in:
parent
6b1659497d
commit
a8f58105a9
2 changed files with 4 additions and 0 deletions
|
|
@ -301,6 +301,7 @@ class LIBARDOUR_API Trigger : public PBD::Stateful {
|
|||
virtual void disarm ();
|
||||
bool armed() const { return _armed; }
|
||||
PBD::Signal0<void> ArmChanged;
|
||||
static PBD::Signal1<void,Trigger const *> TriggerArmChanged;
|
||||
|
||||
Temporal::BBT_Argument compute_start (Temporal::TempoMap::SharedPtr const &, samplepos_t start, samplepos_t end, Temporal::BBT_Offset const & q, samplepos_t& start_samples, bool& will_start);
|
||||
virtual timepos_t compute_end (Temporal::TempoMap::SharedPtr const &, Temporal::BBT_Time const &, samplepos_t, Temporal::Beats &) = 0;
|
||||
|
|
@ -808,6 +809,7 @@ class LIBARDOUR_API TriggerBox : public Processor, public std::enable_shared_fro
|
|||
void set_record_enabled (bool yn);
|
||||
RecordState record_enabled() const { return _record_state; }
|
||||
PBD::Signal0<void> RecEnableChanged;
|
||||
static PBD::Signal0<void> TriggerRecEnableChanged;
|
||||
|
||||
void arm_from_another_thread (Trigger& slot, samplepos_t, uint32_t chans);
|
||||
void disarm();
|
||||
|
|
|
|||
|
|
@ -210,6 +210,7 @@ FollowAction::to_string () const
|
|||
|
||||
Trigger * const Trigger::MagicClearPointerValue = (Trigger*) 0xfeedface;
|
||||
PBD::Signal2<void,PropertyChange,Trigger*> Trigger::TriggerPropertyChange;
|
||||
PBD::Signal1<void,Trigger const *> Trigger::TriggerArmChanged;
|
||||
|
||||
Trigger::Trigger (uint32_t n, TriggerBox& b)
|
||||
: _launch_style (Properties::launch_style, OneShot)
|
||||
|
|
@ -293,6 +294,7 @@ Trigger::arm ()
|
|||
_box.arm_from_another_thread (*this, _box.session().transport_sample(), 2);
|
||||
_armed = true;
|
||||
ArmChanged(); /* EMIT SIGNAL */
|
||||
TriggerArmChanged (this);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue