prepare fix for copying plugin state
authorRobin Gareus <robin@gareus.org>
Wed, 13 Apr 2016 16:53:47 +0000 (18:53 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 13 Apr 2016 16:53:47 +0000 (18:53 +0200)
libs/ardour/plugin_insert.cc
libs/ardour/route.cc

index f5ece32ecb7a1a8f7b8baf0d88fd9f6098c31f1e..0aa2ad63248ea4e27a007945f1cc4308cc180671 100644 (file)
@@ -2071,8 +2071,6 @@ PluginInsert::set_state(const XMLNode& node, int version)
                _custom_cfg = string_is_affirmative (prop->value());
        }
 
-       // TODO load/add sidechain
-
        uint32_t in_maps = 0;
        uint32_t out_maps = 0;
        XMLNodeList kids = node.children ();
@@ -2097,6 +2095,8 @@ PluginInsert::set_state(const XMLNode& node, int version)
                if ((*i)->name () ==  "ThruMap") {
                                _thru_map = ChanMapping (**i);
                }
+
+               // sidechain is a Processor (IO)
                if ((*i)->name () ==  Processor::state_node_name) {
                        if (!_sidechain) {
                                add_sidechain (0);
@@ -2117,6 +2117,7 @@ PluginInsert::set_state(const XMLNode& node, int version)
                }
        }
 
+       PluginConfigChanged (); /* EMIT SIGNAL */
        return 0;
 }
 
index 2b9301c715a5f94794670de181df808d91823c2c..5c34f42b7fa8ef0e0c06d59bcbd91064381b2453 100644 (file)
@@ -1466,7 +1466,6 @@ Route::add_processors (const ProcessorList& others, boost::shared_ptr<Processor>
                        boost::shared_ptr<PluginInsert> pi;
 
                        if ((pi = boost::dynamic_pointer_cast<PluginInsert>(*i)) != 0) {
-                               pi->set_count (1); // why? configure_processors_unlocked() will re-do this
                                pi->set_strict_io (_strict_io);
                        }