mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-27 15:38:19 +01:00
triggerbox: emit a signal when a region has been created post-capture
This commit is contained in:
parent
4c95a82934
commit
48ea440f87
2 changed files with 8 additions and 0 deletions
|
|
@ -847,6 +847,7 @@ class LIBARDOUR_API TriggerBox : public Processor, public std::enable_shared_fro
|
|||
RecordState record_enabled() const { return _record_state; }
|
||||
PBD::Signal<void()> RecEnableChanged;
|
||||
static PBD::Signal<void()> TriggerRecEnableChanged;
|
||||
static PBD::Signal<void(Trigger const *)> RegionCaptured;
|
||||
|
||||
void arm_from_another_thread (Trigger& slot, samplepos_t, uint32_t chans, Temporal::BBT_Offset const &);
|
||||
void disarm();
|
||||
|
|
|
|||
|
|
@ -1772,6 +1772,10 @@ AudioTrigger::set_region_in_worker_thread_internal (std::shared_ptr<Region> r, b
|
|||
|
||||
send_property_change (ARDOUR::Properties::region);
|
||||
|
||||
if (from_capture) {
|
||||
box().RegionCaptured (this);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -2968,6 +2972,8 @@ MIDITrigger::set_region_in_worker_thread_from_capture (std::shared_ptr<Region> r
|
|||
|
||||
send_property_change (ARDOUR::Properties::region);
|
||||
|
||||
box().RegionCaptured (this);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -3513,6 +3519,7 @@ TriggerBoxThread* TriggerBox::worker = 0;
|
|||
CueRecords TriggerBox::cue_records (256);
|
||||
std::atomic<bool> TriggerBox::_cue_recording (false);
|
||||
PBD::Signal<void()> TriggerBox::CueRecordingChanged;
|
||||
PBD::Signal<void(Trigger const *)> TriggerBox::RegionCaptured;
|
||||
bool TriggerBox::roll_requested = false;
|
||||
bool TriggerBox::_learning = false;
|
||||
TriggerBox::CustomMidiMap TriggerBox::_custom_midi_map;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue