From 43e20fd3e8d008873ab8e88569df793ed21760d6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 26 Jul 2016 04:17:49 +0200 Subject: add Sidechain change handler for automatically added initial SC ports --- libs/ardour/route.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ardour/route.cc') diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 36d1791f9f..4b14d761eb 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -1014,6 +1014,10 @@ Route::add_processors (const ProcessorList& others, boost::shared_ptr } } + 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 (); -- cgit v1.2.3