comparison plugin/FeatureExtractionPluginFactory.cpp @ 238:76635085e2d9

* Fixes for new Vamp API changes -- I think plugin parameters are not being set correctly yet though
author Chris Cannam
date Mon, 26 Feb 2007 20:08:51 +0000
parents 91fdc752e540
children 71f869dac40b
comparison
equal deleted inserted replaced
237:3a6af0e5e2d1 238:76635085e2d9
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(index))) {
125 QString id = PluginIdentifier::createIdentifier 125 QString id = PluginIdentifier::createIdentifier
126 ("vamp", soname, descriptor->name); 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;
130 } 130 }
131 131
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(index))) {
236 if (label == descriptor->name) break; 236 if (label == descriptor->identifier) break;
237 ++index; 237 ++index;
238 } 238 }
239 239
240 if (!descriptor) { 240 if (!descriptor) {
241 std::cerr << "FeatureExtractionPluginFactory::instantiatePlugin: Failed to find plugin \"" << label.toStdString() << "\" in library " << soname.toStdString() << std::endl; 241 std::cerr << "FeatureExtractionPluginFactory::instantiatePlugin: Failed to find plugin \"" << label.toStdString() << "\" in library " << soname.toStdString() << std::endl;