mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
triggerbox: add TriggerBox::dump() to check trigger states
This commit is contained in:
parent
1af0e7cc4f
commit
2b630c4887
2 changed files with 11 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue