diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-04-24 22:45:19 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-04-24 22:45:19 +0000 |
commit | 028e1ebc4a392572cae586d0e9044a32b867cba4 (patch) | |
tree | 36d3a748486feb3f41575708bef8b153fef2cad4 /libs/ardour/globals.cc | |
parent | 484debb45c5ea45bccf0f9cb05b1239a9c2244a3 (diff) |
a) completely refactor abstract UI code
b) single-thread Tranzport implementation
c) implement BasicUI to share functionality across multiple
controllers
d) various minor fixes here and there
git-svn-id: svn://localhost/trunk/ardour2@468 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r-- | libs/ardour/globals.cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 5fca7f07eb..a6f9d6b2e5 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -269,6 +269,11 @@ ARDOUR::init (AudioEngine& engine, bool use_vst, bool try_optimization, void (*s /* singleton - first object is "it" */ new ControlProtocolManager (); ControlProtocolManager::instance().discover_control_protocols (Session::control_protocol_path()); + + XMLNode* node; + if ((node = Config->control_protocol_state()) != 0) { + ControlProtocolManager::instance().set_state (*node); + } BoundsChanged = Change (StartChanged|PositionChanged|LengthChanged); @@ -325,7 +330,7 @@ ARDOUR::get_user_ardour_path () } string -ARDOUR::get_system_ardour_path () +ARDOUR::get_system_data_path () { string path; @@ -335,6 +340,17 @@ ARDOUR::get_system_ardour_path () return path; } +string +ARDOUR::get_system_module_path () +{ + string path; + + path += MODULE_DIR; + path += "/ardour2/"; + + return path; +} + static string find_file (string name, string dir, string subdir = "") { |