diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-13 18:53:47 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-13 18:53:47 +0200 |
commit | bc0bb9662e939c1b37f4335c05292a7b0ad21a20 (patch) | |
tree | 948306e7360ea72b33312678bb720b86c352b452 | |
parent | 0d1cd3865dd61dab1b5aa5e9e2181062cea1bd3b (diff) |
prepare fix for copying plugin state
-rw-r--r-- | libs/ardour/plugin_insert.cc | 5 | ||||
-rw-r--r-- | libs/ardour/route.cc | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index f5ece32ecb..0aa2ad6324 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -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; } diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 2b9301c715..5c34f42b7f 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -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); } |