Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/plugin/transform/Transform.cpp Wed Nov 07 12:59:01 2007 +0000 +++ b/plugin/transform/Transform.cpp Wed Nov 07 14:53:12 2007 +0000 @@ -17,6 +17,8 @@ #include "plugin/PluginIdentifier.h" +#include "plugin/FeatureExtractionPluginFactory.h" + Transform::Transform() : m_stepSize(0), m_blockSize(0), @@ -50,10 +52,13 @@ Transform::Type Transform::getType() const { - QString type, soName, label, output; - parseIdentifier(m_id, type, soName, label, output); - if (type == "vamp") return FeatureExtraction; //!!! lousy - else return RealTimeEffect; + if (FeatureExtractionPluginFactory::instanceFor(getPluginIdentifier())) { + return FeatureExtraction; + } else { + // We don't have an unknown/invalid return value, so always + // return this + return RealTimeEffect; + } } QString