From ca36d7cc2f393705a6ce59973ce2bf39bb9e9e85 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 27 Dec 2019 21:10:27 -0700 Subject: [PATCH] register TransportState enum for use with enumwriter --- libs/ardour/enums.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libs/ardour/enums.cc b/libs/ardour/enums.cc index 67337ab9e5..f9eda73b7e 100644 --- a/libs/ardour/enums.cc +++ b/libs/ardour/enums.cc @@ -156,7 +156,8 @@ setup_enum_writer () TransportFSM::MotionState _TransportFSM_MotionState; TransportFSM::ButlerState _TransportFSM_ButlerState; LoopFadeChoice _LoopFadeChooice; - + TransportState _TransportState; + #define REGISTER(e) enum_writer.register_distinct (typeid(e).name(), i, s); i.clear(); s.clear() #define REGISTER_BITS(e) enum_writer.register_bits (typeid(e).name(), i, s); i.clear(); s.clear() #define REGISTER_ENUM(e) i.push_back (e); s.push_back (#e) @@ -826,6 +827,12 @@ setup_enum_writer () REGISTER_ENUM (BothLoopFade); REGISTER_ENUM (XFadeLoop); REGISTER (_LoopFadeChooice); + + REGISTER_ENUM (TransportStopped); + REGISTER_ENUM (TransportRolling); + REGISTER_ENUM (TransportLooping); + REGISTER_ENUM (TransportStarting); + REGISTER (_TransportState); } } /* namespace ARDOUR */