+
+ /* When on input side, let's look for sidechains in the route's plugins
+ to display them right next to their route */
+ for (uint32_t n = 0; inputs; ++n) {
+ boost::shared_ptr<Processor> p = (i->route)->nth_plugin (n);
+ if (!p) {
+ break;
+ }
+ boost::shared_ptr<SideChain> sc = boost::static_pointer_cast<PluginInsert> (p)->sidechain ();
+
+ if (sc) {
+ boost::shared_ptr<IO> io = sc->input();
+ if (tv) {
+ sidechain->add_bundle (io->bundle(), io, tv->color ());
+ } else {
+ sidechain->add_bundle (io->bundle(), io);
+ }
+ }
+ }