comparison transform/FeatureExtractionPluginTransform.cpp @ 107:dd11619b73ba

* Update along with latest Vamp API change. This has not yet been tested.
author Chris Cannam
date Mon, 26 Feb 2007 18:13:07 +0000
parents c1318aac18d2
children b4110b17bca8
comparison
equal deleted inserted replaced
106:f8e362511b2f 107:dd11619b73ba
88 88
89 if (!m_plugin->initialise(channelCount, 89 if (!m_plugin->initialise(channelCount,
90 m_context.stepSize, 90 m_context.stepSize,
91 m_context.blockSize)) { 91 m_context.blockSize)) {
92 std::cerr << "FeatureExtractionPluginTransform: Plugin " 92 std::cerr << "FeatureExtractionPluginTransform: Plugin "
93 << m_plugin->getName() << " failed to initialise!" << std::endl; 93 << m_plugin->getIdentifier() << " failed to initialise!" << std::endl;
94 return; 94 return;
95 } 95 }
96 96
97 Vamp::Plugin::OutputList outputs = m_plugin->getOutputDescriptors(); 97 Vamp::Plugin::OutputList outputs = m_plugin->getOutputDescriptors();
98 98
101 << pluginId.toStdString() << "\" has no outputs" << std::endl; 101 << pluginId.toStdString() << "\" has no outputs" << std::endl;
102 return; 102 return;
103 } 103 }
104 104
105 for (size_t i = 0; i < outputs.size(); ++i) { 105 for (size_t i = 0; i < outputs.size(); ++i) {
106 if (outputName == "" || outputs[i].name == outputName.toStdString()) { 106 if (outputName == "" || outputs[i].identifier == outputName.toStdString()) {
107 m_outputFeatureNo = i; 107 m_outputFeatureNo = i;
108 m_descriptor = new Vamp::Plugin::OutputDescriptor 108 m_descriptor = new Vamp::Plugin::OutputDescriptor
109 (outputs[i]); 109 (outputs[i]);
110 break; 110 break;
111 } 111 }