Backport a Mixbus special-case for plugin-tags
authorRobin Gareus <robin@gareus.org>
Wed, 3 Apr 2019 01:35:40 +0000 (03:35 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 3 Apr 2019 01:35:40 +0000 (03:35 +0200)
libs/ardour/plugin_manager.cc

index 181516bf0a6a20141a7a70f7ea303a9cd01d6b99..6e57f17220cf40d7a3bb3f76dfbd0545311469bc 100644 (file)
@@ -1536,6 +1536,14 @@ PluginManager::save_tags ()
        XMLNode* root = new XMLNode (X_("PluginTags"));
 
        for (PluginTagList::iterator i = ptags.begin(); i != ptags.end(); ++i) {
+#ifdef MIXBUS
+               if ((*i).type == LADSPA) {
+                       uint32_t id = atoi ((*i).unique_id);
+                       if (id >= 9300 && id <= 9399) {
+                               continue; /* do not write mixbus channelstrip ladspa's in the tagfile */
+                       }
+               }
+#endif
                if ((*i).tagtype == FromFactoryFile || (*i).tagtype == FromUserFile) {
                        /* user file should contain only plugins that are (a) newly user-tagged or (b) previously unknown */
                        continue;