diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-09-28 14:49:49 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-09-28 17:42:11 -0400 |
commit | 0613ddd1f9b3ccd7de086738aab874c4153a20cc (patch) | |
tree | 511acfbf259eff60fc1fa7d2883a59da712cacad /libs/ardour/globals.cc | |
parent | 9f8fe4b0bcedc05538d5351b5b7feeb62b2e2f4c (diff) |
better more reliable checks on renamed, newly created and imported track/bus names
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r-- | libs/ardour/globals.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index a76fae4fee..9f512c1ec0 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -142,6 +142,8 @@ PBD::Signal1<void,int> ARDOUR::PluginScanTimeout; PBD::Signal0<void> ARDOUR::GUIIdle; PBD::Signal3<bool,std::string,std::string,int> ARDOUR::CopyConfigurationFiles; +std::vector<std::string> ARDOUR::reserved_io_names; + static bool have_old_configuration_files = false; namespace ARDOUR { @@ -506,6 +508,25 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir ARDOUR::AudioEngine::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 + lack of collisions without doing this, since the control surface + support may not even be active. Without adding an API to control + surface support that would list their port names, we do have to + list them here. + */ + + char const * reserved[] = { + _("Monitor"), + _("Master"), + _("Control"), + _("Click"), + _("Mackie"), + 0 + }; + + reserved_io_names = I18N (reserved); + libardour_initialized = true; return true; |