triggerbox: add TriggerBox::dump() to check trigger states
This commit is contained in:
parent
1af0e7cc4f
commit
2b630c4887
@ -800,6 +800,8 @@ class LIBARDOUR_API TriggerBox : public Processor
|
||||
|
||||
static PBD::PropertyChange all_trigger_props();
|
||||
|
||||
void dump (std::ostream &) const;
|
||||
|
||||
private:
|
||||
struct Requests {
|
||||
std::atomic<bool> stop_all;
|
||||
|
@ -4316,6 +4316,15 @@ TriggerBox::non_realtime_locate (samplepos_t now)
|
||||
fast_forward (_session.cue_events(), now);
|
||||
}
|
||||
|
||||
void
|
||||
TriggerBox::dump (std::ostream & ostr) const
|
||||
{
|
||||
ostr << "TriggerBox " << order() << std::endl;
|
||||
for (auto const & t : all_triggers) {
|
||||
ostr << "\tTrigger " << t->index() << " state " << enum_2_string (t->state()) << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
/* Thread */
|
||||
|
||||
MultiAllocSingleReleasePool* TriggerBoxThread::Request::pool = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user