# HG changeset patch # User Chris Cannam # Date 1477046967 -3600 # Node ID 7a3fa603190e50a8da656cfa1aeb109375085548 # Parent 4826330c4f9715dedd797385d55f95c1bb929b87 Restore native-Vamp factory and make the choice between Piper and Native a preference diff -r 4826330c4f97 -r 7a3fa603190e framework/TransformUserConfigurator.cpp --- a/framework/TransformUserConfigurator.cpp Thu Oct 20 14:07:06 2016 +0100 +++ b/framework/TransformUserConfigurator.cpp Fri Oct 21 11:49:27 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)