Mercurial > hg > svcore
comparison plugin/FeatureExtractionPluginFactory.cpp @ 1057:5c5d4863b428 tonioni
Merge from cxx11 branch
author | Chris Cannam |
---|---|
date | Mon, 23 Mar 2015 11:26:28 +0000 |
parents | a1cd5abcb38b |
children | c7f1300dbf64 bff23ef9407e |
comparison
equal
deleted
inserted
replaced
1056:c4898e57eea5 | 1057:5c5d4863b428 |
---|---|
297 } | 297 } |
298 } | 298 } |
299 | 299 |
300 Vamp::Plugin * | 300 Vamp::Plugin * |
301 FeatureExtractionPluginFactory::instantiatePlugin(QString identifier, | 301 FeatureExtractionPluginFactory::instantiatePlugin(QString identifier, |
302 float inputSampleRate) | 302 sv_samplerate_t inputSampleRate) |
303 { | 303 { |
304 Profiler profiler("FeatureExtractionPluginFactory::instantiatePlugin"); | 304 Profiler profiler("FeatureExtractionPluginFactory::instantiatePlugin"); |
305 | 305 |
306 Vamp::Plugin *rv = 0; | 306 Vamp::Plugin *rv = 0; |
307 Vamp::PluginHostAdapter *plugin = 0; | 307 Vamp::PluginHostAdapter *plugin = 0; |
355 if (!descriptor) { | 355 if (!descriptor) { |
356 cerr << "FeatureExtractionPluginFactory::instantiatePlugin: Failed to find plugin \"" << label << "\" in library " << soname << endl; | 356 cerr << "FeatureExtractionPluginFactory::instantiatePlugin: Failed to find plugin \"" << label << "\" in library " << soname << endl; |
357 goto done; | 357 goto done; |
358 } | 358 } |
359 | 359 |
360 plugin = new Vamp::PluginHostAdapter(descriptor, inputSampleRate); | 360 plugin = new Vamp::PluginHostAdapter(descriptor, float(inputSampleRate)); |
361 | 361 |
362 if (plugin) { | 362 if (plugin) { |
363 m_handleMap[plugin] = libraryHandle; | 363 m_handleMap[plugin] = libraryHandle; |
364 rv = new PluginDeletionNotifyAdapter(plugin, this); | 364 rv = new PluginDeletionNotifyAdapter(plugin, this); |
365 } | 365 } |