comparison framework/TransformUserConfigurator.cpp @ 295:14b1768e5406 tonioni

Merge from default branch
author Chris Cannam
date Tue, 26 Nov 2013 14:39:57 +0000
parents 068235cf5bf7
children 0876ea394902
comparison
equal deleted inserted replaced
292:bc78f88a66f5 295:14b1768e5406
79 frequency = (vp->getInputDomain() == Vamp::Plugin::FrequencyDomain); 79 frequency = (vp->getInputDomain() == Vamp::Plugin::FrequencyDomain);
80 80
81 std::vector<Vamp::Plugin::OutputDescriptor> od = 81 std::vector<Vamp::Plugin::OutputDescriptor> od =
82 vp->getOutputDescriptors(); 82 vp->getOutputDescriptors();
83 83
84 std::cerr << "configure: looking for output: " << output << std::endl; 84 cerr << "configure: looking for output: " << output << endl;
85 85
86 if (od.size() > 1) { 86 if (od.size() > 1) {
87 for (size_t i = 0; i < od.size(); ++i) { 87 for (size_t i = 0; i < od.size(); ++i) {
88 if (od[i].identifier == output.toStdString()) { 88 if (od[i].identifier == output.toStdString()) {
89 outputLabel = od[i].name.c_str(); 89 outputLabel = od[i].name.c_str();
171 171
172 QString selectedInput = dialog->getInputModel(); 172 QString selectedInput = dialog->getInputModel();
173 if (selectedInput != "") { 173 if (selectedInput != "") {
174 if (modelMap.contains(selectedInput)) { 174 if (modelMap.contains(selectedInput)) {
175 inputModel = modelMap.value(selectedInput); 175 inputModel = modelMap.value(selectedInput);
176 std::cerr << "Found selected input \"" << selectedInput << "\" in model map, result is " << inputModel << std::endl; 176 cerr << "Found selected input \"" << selectedInput << "\" in model map, result is " << inputModel << endl;
177 } else { 177 } else {
178 std::cerr << "Failed to find selected input \"" << selectedInput << "\" in model map" << std::endl; 178 cerr << "Failed to find selected input \"" << selectedInput << "\" in model map" << endl;
179 } 179 }
180 } else { 180 } else {
181 std::cerr << "Selected input empty: \"" << selectedInput << "\"" << std::endl; 181 cerr << "Selected input empty: \"" << selectedInput << "\"" << endl;
182 } 182 }
183 183
184 // Write parameters back to transform object 184 // Write parameters back to transform object
185 TransformFactory::getInstance()-> 185 TransformFactory::getInstance()->
186 setParametersFromPlugin(transform, plugin); 186 setParametersFromPlugin(transform, plugin);