# HG changeset patch # User Chris Cannam # Date 1477389915 -3600 # Node ID d5e339613174be7acfe20906a347b35c396883b4 # Parent 066d8c5f3b2127d6b97434d3d5e03a495abdcaa4# Parent 7a3fa603190e50a8da656cfa1aeb109375085548 Merge from branch 3.0-integration diff -r 066d8c5f3b21 -r d5e339613174 framework/TransformUserConfigurator.cpp --- a/framework/TransformUserConfigurator.cpp Mon Oct 24 17:53:33 2016 +0100 +++ b/framework/TransformUserConfigurator.cpp Tue Oct 25 11:05:15 2016 +0100 @@ -80,28 +80,7 @@ if (!plugin) return false; - if (FeatureExtractionPluginFactory::instanceFor(id)) { - - Vamp::Plugin *vp = static_cast(plugin); - - frequency = (vp->getInputDomain() == Vamp::Plugin::FrequencyDomain); - - std::vector od = - vp->getOutputDescriptors(); - - cerr << "configure: looking for output: " << output << endl; - - if (od.size() > 1) { - for (size_t i = 0; i < od.size(); ++i) { - if (od[i].identifier == output.toStdString()) { - outputLabel = od[i].name.c_str(); - outputDescription = od[i].description.c_str(); - break; - } - } - } - - } else if (RealTimePluginFactory::instanceFor(id)) { + if (RealTimePluginFactory::instanceFor(id)) { RealTimePluginFactory *factory = RealTimePluginFactory::instanceFor(id); const RealTimePluginDescriptor *desc = factory->getPluginDescriptor(id); @@ -130,8 +109,29 @@ SVDEBUG << "Setting auditioning effect" << endl; source->setAuditioningEffect(rtp); } + + } else { + + Vamp::Plugin *vp = static_cast(plugin); + + frequency = (vp->getInputDomain() == Vamp::Plugin::FrequencyDomain); + + std::vector od = + vp->getOutputDescriptors(); + + cerr << "configure: looking for output: " << output << endl; + + if (od.size() > 1) { + for (size_t i = 0; i < od.size(); ++i) { + if (od[i].identifier == output.toStdString()) { + outputLabel = od[i].name.c_str(); + outputDescription = od[i].description.c_str(); + break; + } + } + } } - + int sourceChannels = 1; if (dynamic_cast(inputModel)) { sourceChannels = dynamic_cast(inputModel)