diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-08 22:55:20 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-08 22:55:20 +0000 |
commit | 648a169d8ff9987ba727e9ba50af4f33da6db165 (patch) | |
tree | d8e250205004633a9f5c94e15e8f3826fac183b6 /libs/ardour/globals.cc | |
parent | 3549189f87813b8c9f01f2f6484b34cf923a65ad (diff) |
Move MIDI control port ownership into the MIDI Manager, since control port state should be Ardour-wide, not per-session. Fix up port connection state management.
git-svn-id: svn://localhost/ardour2/branches/3.0@7394 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r-- | libs/ardour/globals.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 111b824c28..3aa6d6990d 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -328,12 +328,17 @@ ARDOUR::init (bool use_vst, bool try_optimization) void ARDOUR::init_post_engine () { + /* the MIDI Manager is needed by the ControlProtocolManager */ + MIDI::Manager::create (AudioEngine::instance()->jack()); + ControlProtocolManager::instance().discover_control_protocols (); XMLNode* node; if ((node = Config->control_protocol_state()) != 0) { ControlProtocolManager::instance().set_state (*node, Stateful::loading_state_version); } + + MIDI::Manager::instance()->set_port_states (Config->midi_port_states ()); } int |