From bc0bb9662e939c1b37f4335c05292a7b0ad21a20 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 13 Apr 2016 18:53:47 +0200 Subject: prepare fix for copying plugin state --- libs/ardour/plugin_insert.cc | 5 +++-- 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 boost::shared_ptr pi; if ((pi = boost::dynamic_pointer_cast(*i)) != 0) { - pi->set_count (1); // why? configure_processors_unlocked() will re-do this pi->set_strict_io (_strict_io); } -- cgit v1.2.3