comparison transform/FeatureExtractionModelTransformer.cpp @ 1226:91ff08313375 piper

Fixes to choice of plugin factory
author Chris Cannam
date Fri, 21 Oct 2016 14:51:22 +0100
parents ba16388b937d
children a83541a1f100
comparison
equal deleted inserted replaced
1225:ba16388b937d 1226:91ff08313375
14 */ 14 */
15 15
16 #include "FeatureExtractionModelTransformer.h" 16 #include "FeatureExtractionModelTransformer.h"
17 17
18 #include "plugin/FeatureExtractionPluginFactory.h" 18 #include "plugin/FeatureExtractionPluginFactory.h"
19 #include "plugin/NativeVampPluginFactory.h"
20 #include "plugin/PiperVampPluginFactory.h"
21 19
22 #include "plugin/PluginXml.h" 20 #include "plugin/PluginXml.h"
23 #include <vamp-hostsdk/Plugin.h> 21 #include <vamp-hostsdk/Plugin.h>
24 22
25 #include "data/model/Model.h" 23 #include "data/model/Model.h"
93 91
94 Transform primaryTransform = m_transforms[0]; 92 Transform primaryTransform = m_transforms[0];
95 93
96 QString pluginId = primaryTransform.getPluginIdentifier(); 94 QString pluginId = primaryTransform.getPluginIdentifier();
97 95
98 FeatureExtractionPluginFactory *factory = PiperVampPluginFactory::instance(); 96 FeatureExtractionPluginFactory *factory =
97 FeatureExtractionPluginFactory::instance();
99 98
100 if (!factory) { 99 if (!factory) {
101 m_message = tr("No factory available for feature extraction plugin id \"%1\" (unknown plugin type, or internal error?)").arg(pluginId); 100 m_message = tr("No factory available for feature extraction plugin id \"%1\" (unknown plugin type, or internal error?)").arg(pluginId);
102 return false; 101 return false;
103 } 102 }