diff --git a/libs/ardour/ardour/triggerbox.h b/libs/ardour/ardour/triggerbox.h index e274f18299..d153730f83 100644 --- a/libs/ardour/ardour/triggerbox.h +++ b/libs/ardour/ardour/triggerbox.h @@ -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 stop_all; diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 5a16bf2869..9e387c9648 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -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;