diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-17 15:26:01 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-18 08:49:18 -0700 |
commit | 3c00048b0c0dbf3efd17cf04fdc7daa91424e338 (patch) | |
tree | 7049bed10f750ba08a0e4769f975a90930dab5db /libs/ardour/enums.cc | |
parent | 3fe87b9fa1417cfcf6636ff9bf4c8c2abcb6f796 (diff) |
Session::request_locate() takes a tri-valued second argument for "roll-after-locate"
This allows callers to defer logic about auto-play/current rolling state and more to TransportFSM where it
can be cnentralized and is less ambiguous
Diffstat (limited to 'libs/ardour/enums.cc')
-rw-r--r-- | libs/ardour/enums.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/ardour/enums.cc b/libs/ardour/enums.cc index f9eda73b7e..d8a442150c 100644 --- a/libs/ardour/enums.cc +++ b/libs/ardour/enums.cc @@ -157,7 +157,8 @@ setup_enum_writer () TransportFSM::ButlerState _TransportFSM_ButlerState; LoopFadeChoice _LoopFadeChooice; TransportState _TransportState; - + LocateTransportDisposition _LocateTransportDisposition; + #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) @@ -833,6 +834,11 @@ setup_enum_writer () REGISTER_ENUM (TransportLooping); REGISTER_ENUM (TransportStarting); REGISTER (_TransportState); + + REGISTER_ENUM (MustStop); + REGISTER_ENUM (MustRoll); + REGISTER_ENUM (DoTheRightThing); + REGISTER (_LocateTransportDisposition); } } /* namespace ARDOUR */ |