13
0

triggerbox: add TriggerBox::dump() to check trigger states

This commit is contained in:
Paul Davis 2022-03-17 12:19:11 -06:00
parent 1af0e7cc4f
commit 2b630c4887
2 changed files with 11 additions and 0 deletions

View File

@ -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;

View File

@ -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;