comparison plugin/transform/Transform.cpp @ 332:13e5870040e6

* some tidying, and put some actual work in TransformFactory
author Chris Cannam
date Wed, 07 Nov 2007 14:53:12 +0000
parents 21bd032ae791
children d7c41483af8f 94fc0591ea43
comparison
equal deleted inserted replaced
331:f620ce48c950 332:13e5870040e6
14 */ 14 */
15 15
16 #include "Transform.h" 16 #include "Transform.h"
17 17
18 #include "plugin/PluginIdentifier.h" 18 #include "plugin/PluginIdentifier.h"
19
20 #include "plugin/FeatureExtractionPluginFactory.h"
19 21
20 Transform::Transform() : 22 Transform::Transform() :
21 m_stepSize(0), 23 m_stepSize(0),
22 m_blockSize(0), 24 m_blockSize(0),
23 m_windowType(HanningWindow), 25 m_windowType(HanningWindow),
48 } 50 }
49 51
50 Transform::Type 52 Transform::Type
51 Transform::getType() const 53 Transform::getType() const
52 { 54 {
53 QString type, soName, label, output; 55 if (FeatureExtractionPluginFactory::instanceFor(getPluginIdentifier())) {
54 parseIdentifier(m_id, type, soName, label, output); 56 return FeatureExtraction;
55 if (type == "vamp") return FeatureExtraction; //!!! lousy 57 } else {
56 else return RealTimeEffect; 58 // We don't have an unknown/invalid return value, so always
59 // return this
60 return RealTimeEffect;
61 }
57 } 62 }
58 63
59 QString 64 QString
60 Transform::getPluginIdentifier() const 65 Transform::getPluginIdentifier() const
61 { 66 {