Mercurial > hg > svcore
comparison transform/FeatureExtractionPluginTransform.cpp @ 69:57a78e7e4ad3
* Make the item-edit dialog do something useful
author | Chris Cannam |
---|---|
date | Mon, 03 Apr 2006 17:18:27 +0000 |
parents | 8e8c2981a189 |
children | d26c85099215 |
comparison
equal
deleted
inserted
replaced
68:8e8c2981a189 | 69:57a78e7e4ad3 |
---|---|
204 return; | 204 return; |
205 } | 205 } |
206 | 206 |
207 size_t sampleRate = m_input->getSampleRate(); | 207 size_t sampleRate = m_input->getSampleRate(); |
208 | 208 |
209 m_plugin->initialise(channelCount, m_stepSize, m_blockSize); | 209 if (!m_plugin->initialise(channelCount, m_stepSize, m_blockSize)) { |
210 std::cerr << "FeatureExtractionPluginTransform::run: Plugin " | |
211 << m_plugin->getName() << " failed to initialise!" << std::endl; | |
212 return; | |
213 } | |
210 | 214 |
211 float **buffers = new float*[channelCount]; | 215 float **buffers = new float*[channelCount]; |
212 for (size_t ch = 0; ch < channelCount; ++ch) { | 216 for (size_t ch = 0; ch < channelCount; ++ch) { |
213 buffers[ch] = new float[m_blockSize]; | 217 buffers[ch] = new float[m_blockSize]; |
214 } | 218 } |