comparison plugins/MFCCPlugin.cpp @ 95:e51152b7ee06

* Fixes to problems shown by vamp-plugin-tester
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 23 Mar 2009 16:29:12 +0000
parents a99c43f470a5
children 4a354c18e688
comparison
equal deleted inserted replaced
94:f46864eba7fd 95:e51152b7ee06
171 } 171 }
172 172
173 if (channels < getMinChannelCount() || 173 if (channels < getMinChannelCount() ||
174 channels > getMaxChannelCount()) return false; 174 channels > getMaxChannelCount()) return false;
175 175
176 std::cerr << "MFCCPlugin::initialise: step " << stepSize << ", block " 176 // std::cerr << "MFCCPlugin::initialise: step " << stepSize << ", block "
177 << blockSize << std::endl; 177 // << blockSize << std::endl;
178 178
179 m_step = stepSize; 179 m_step = stepSize;
180 m_block = blockSize; 180 m_block = blockSize;
181 setupConfig(); 181 setupConfig();
182 182
279 feature.values.push_back(value); 279 feature.values.push_back(value);
280 } 280 }
281 feature.label = ""; 281 feature.label = "";
282 ++m_count; 282 ++m_count;
283 283
284 delete[] output;
285
284 FeatureSet returnFeatures; 286 FeatureSet returnFeatures;
285 returnFeatures[0].push_back(feature); 287 returnFeatures[0].push_back(feature);
286 return returnFeatures; 288 return returnFeatures;
287 } 289 }
288 290