comparison plugin/FeatureExtractionPluginFactory.cpp @ 239:71f869dac40b

* Further fixes for Vamp API change, and update to support API versioning * Add plugin, output and parameter descriptions to GUI * Avoid squished panner in heads-up-display on pane when time-value or note layer is on top
author Chris Cannam
date Tue, 27 Feb 2007 12:51:38 +0000
parents 76635085e2d9
children 2b40f83e7627
comparison
equal deleted inserted replaced
238:76635085e2d9 239:71f869dac40b
119 } 119 }
120 120
121 const VampPluginDescriptor *descriptor = 0; 121 const VampPluginDescriptor *descriptor = 0;
122 int index = 0; 122 int index = 0;
123 123
124 while ((descriptor = fn(index))) { 124 while ((descriptor = fn(VAMP_API_VERSION, index))) {
125 QString id = PluginIdentifier::createIdentifier 125 QString id = PluginIdentifier::createIdentifier
126 ("vamp", soname, descriptor->identifier); 126 ("vamp", soname, descriptor->identifier);
127 rv.push_back(id); 127 rv.push_back(id);
128 std::cerr << "Found id " << id.toStdString() << std::endl; 128 std::cerr << "Found id " << id.toStdString() << std::endl;
129 ++index; 129 ++index;
230 if (!fn) { 230 if (!fn) {
231 std::cerr << "FeatureExtractionPluginFactory::instantiatePlugin: No descriptor function in " << soname.toStdString() << std::endl; 231 std::cerr << "FeatureExtractionPluginFactory::instantiatePlugin: No descriptor function in " << soname.toStdString() << std::endl;
232 goto done; 232 goto done;
233 } 233 }
234 234
235 while ((descriptor = fn(index))) { 235 while ((descriptor = fn(VAMP_API_VERSION, index))) {
236 if (label == descriptor->identifier) break; 236 if (label == descriptor->identifier) break;
237 ++index; 237 ++index;
238 } 238 }
239 239
240 if (!descriptor) { 240 if (!descriptor) {