diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-09-17 18:26:03 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-09-17 18:26:03 -0600 |
commit | bd229936ec2cb30fe3360f2d83ffc7197fd6fb97 (patch) | |
tree | 84e41e048d76541d5d491ccefe8c7feaa14f4d5c /libs/ardour/globals.cc | |
parent | fc3e7623e7a4c7fdeebf84c4d47eaf04d9bc744d (diff) |
add finite state machine to control/manage transport state
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r-- | libs/ardour/globals.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index f70e015b11..cbb7e4da0e 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -574,6 +574,7 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir PannerManager::instance().discover_panners(); ARDOUR::AudioEngine::create (); + TransportMasterManager::create (); /* it is unfortunate that we need to include reserved names here that refer to control surfaces. But there's no way to ensure a complete @@ -619,14 +620,13 @@ ARDOUR::init_post_engine (uint32_t start_cnt) /* find plugins */ ARDOUR::PluginManager::instance().refresh (!Config->get_discover_vst_on_start()); - } - - if (start_cnt == 0) { if ((node = Config->control_protocol_state()) != 0) { ControlProtocolManager::instance().set_state (*node, 0 /* here: global-config state */); } + } + if (start_cnt > 0) { TransportMasterManager::instance().restart (); } } |