From 87974562d370ae085744b89d96f198fbf8aa17fd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 28 Dec 2021 18:02:13 -0700 Subject: [PATCH] triggerbox: add TriggerBox::active_scene() --- libs/ardour/ardour/triggerbox.h | 1 + libs/ardour/triggerbox.cc | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/libs/ardour/ardour/triggerbox.h b/libs/ardour/ardour/triggerbox.h index b996cca668..b453362084 100644 --- a/libs/ardour/ardour/triggerbox.h +++ b/libs/ardour/ardour/triggerbox.h @@ -565,6 +565,7 @@ class LIBARDOUR_API TriggerBox : public Processor static void clear_scene_bang (); static void scene_bang (uint32_t scene_number); static void scene_unbang (uint32_t scene_number); + static int32_t active_scene (); static void init (); diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 693a81accc..63aba5dfff 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -1939,6 +1939,12 @@ TriggerBox::scene_unbang (uint32_t n) { } +int32_t +TriggerBox::active_scene () +{ + return _active_scene.load (); +} + void TriggerBox::maybe_find_scene_bang () {