add Sidechain change handler for automatically added initial SC ports
authorRobin Gareus <robin@gareus.org>
Tue, 26 Jul 2016 02:17:49 +0000 (04:17 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 26 Jul 2016 02:20:18 +0000 (04:20 +0200)
libs/ardour/route.cc

index 36d1791f9f22afff3787be34ff37eb1421702aa3..4b14d761ebde62cbd167d54c27376b772bb8f418 100644 (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 ();