diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-26 04:17:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-26 04:20:18 +0200 |
commit | 43e20fd3e8d008873ab8e88569df793ed21760d6 (patch) | |
tree | accb56c1daf4946dac142da678d7a84090197190 /libs/ardour/route.cc | |
parent | 7cc2e8c969e7b778af90f3b45a4c3fa3cbc90ef6 (diff) |
add Sidechain change handler for automatically added initial SC ports
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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<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 (); |