Mercurial > hg > svapp
changeset 531:d5e339613174 project-file-rework
Merge from branch 3.0-integration
author | Chris Cannam |
---|---|
date | Tue, 25 Oct 2016 11:05:15 +0100 |
parents | 066d8c5f3b21 (current diff) 7a3fa603190e (diff) |
children | 227291052aa9 |
files | |
diffstat | 1 files changed, 23 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- 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<Vamp::Plugin *>(plugin); - - frequency = (vp->getInputDomain() == Vamp::Plugin::FrequencyDomain); - - std::vector<Vamp::Plugin::OutputDescriptor> 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<Vamp::Plugin *>(plugin); + + frequency = (vp->getInputDomain() == Vamp::Plugin::FrequencyDomain); + + std::vector<Vamp::Plugin::OutputDescriptor> 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<DenseTimeValueModel *>(inputModel)) { sourceChannels = dynamic_cast<DenseTimeValueModel *>(inputModel)