Mercurial > hg > svcore
comparison plugin/FeatureExtractionPluginFactory.cpp @ 1264:a99641535e02 3.0-integration
Debug output improvements, and make the checker actually attempt to call the descriptor function for known plugin types
author | Chris Cannam |
---|---|
date | Wed, 16 Nov 2016 16:12:42 +0000 |
parents | d45a16c232bd |
children | 70e172e6cc59 |
comparison
equal
deleted
inserted
replaced
1263:abfc498c52bc | 1264:a99641535e02 |
---|---|
32 | 32 |
33 if (!instance) { | 33 if (!instance) { |
34 | 34 |
35 #ifdef HAVE_PIPER | 35 #ifdef HAVE_PIPER |
36 if (Preferences::getInstance()->getRunPluginsInProcess()) { | 36 if (Preferences::getInstance()->getRunPluginsInProcess()) { |
37 SVDEBUG << "FeatureExtractionPluginFactory: creating native instance" | 37 SVDEBUG << "FeatureExtractionPluginFactory: in-process preference set, using native factory" << endl; |
38 << endl; | |
39 instance = new NativeVampPluginFactory(); | 38 instance = new NativeVampPluginFactory(); |
40 } else { | 39 } else { |
41 SVDEBUG << "FeatureExtractionPluginFactory: creating Piper instance" | 40 SVDEBUG << "FeatureExtractionPluginFactory: in-process preference not set, using Piper factory" << endl; |
42 << endl; | |
43 instance = new PiperVampPluginFactory(); | 41 instance = new PiperVampPluginFactory(); |
44 } | 42 } |
45 #else | 43 #else |
46 SVDEBUG << "FeatureExtractionPluginFactory: no Piper support enabled," | 44 SVDEBUG << "FeatureExtractionPluginFactory: no Piper support compiled in, using native factory" << endl; |
47 << " creating native instance" << endl; | |
48 instance = new NativeVampPluginFactory(); | 45 instance = new NativeVampPluginFactory(); |
49 #endif | 46 #endif |
50 } | 47 } |
51 | 48 |
52 return instance; | 49 return instance; |