add Sidechain change handler for automatically added initial SC ports

This commit is contained in:
Robin Gareus 2016-07-26 04:17:49 +02:00
parent 7cc2e8c969
commit 43e20fd3e8

View File

@ -1014,6 +1014,10 @@ Route::add_processors (const ProcessorList& others, boost::shared_ptr<Processor>
}
}
if (pi && pi->has_sidechain ()) {
pi->sidechain_input ()->changed.connect_same_thread (*this, boost::bind (&Route::sidechain_change_handler, this, _1, _2));
}
if ((*i)->active()) {
// why? emit ActiveChanged() ??
(*i)->activate ();