Mercurial > hg > sonic-annotator
comparison runner/FeatureExtractionManager.cpp @ 25:af5e469ac654
* print a bit more info for diagnostic purposes
author | Chris Cannam |
---|---|
date | Thu, 10 Sep 2009 15:25:58 +0000 |
parents | 4ab7c925f7ac |
children | 0af07912f386 |
comparison
equal
deleted
inserted
replaced
24:18c42fbc1335 | 25:af5e469ac654 |
---|---|
201 // feature. I'm not sure whether we can easily use that.) | 201 // feature. I'm not sure whether we can easily use that.) |
202 | 202 |
203 size_t pluginStepSize = plugin->getPreferredStepSize(); | 203 size_t pluginStepSize = plugin->getPreferredStepSize(); |
204 size_t pluginBlockSize = plugin->getPreferredBlockSize(); | 204 size_t pluginBlockSize = plugin->getPreferredBlockSize(); |
205 | 205 |
206 PluginInputDomainAdapter *pida = 0; | |
207 | |
206 // adapt the plugin for buffering, channels, etc. | 208 // adapt the plugin for buffering, channels, etc. |
207 if (plugin->getInputDomain() == Plugin::FrequencyDomain) { | 209 if (plugin->getInputDomain() == Plugin::FrequencyDomain) { |
208 plugin = new PluginInputDomainAdapter(plugin); | 210 pida = new PluginInputDomainAdapter(plugin); |
211 plugin = pida; | |
209 } | 212 } |
210 | 213 |
211 PluginBufferingAdapter *pba = new PluginBufferingAdapter(plugin); | 214 PluginBufferingAdapter *pba = new PluginBufferingAdapter(plugin); |
212 plugin = pba; | 215 plugin = pba; |
213 | 216 |
255 m_pluginOutputs[plugin][outputs[i].identifier] = outputs[i]; | 258 m_pluginOutputs[plugin][outputs[i].identifier] = outputs[i]; |
256 m_pluginOutputIndices[outputs[i].identifier] = i; | 259 m_pluginOutputIndices[outputs[i].identifier] = i; |
257 } | 260 } |
258 | 261 |
259 cerr << "NOTE: Loaded and initialised plugin for transform \"" | 262 cerr << "NOTE: Loaded and initialised plugin for transform \"" |
260 << transform.getIdentifier().toStdString() << "\"" << endl; | 263 << transform.getIdentifier().toStdString() |
264 << "\" with plugin step size " << actualStepSize | |
265 << " and block size " << actualBlockSize | |
266 << " (adapter step and block size " << m_blockSize << ")" | |
267 << endl; | |
268 | |
269 if (pida) { | |
270 cerr << "NOTE: PluginInputDomainAdapter timestamp adjustment is " | |
271 | |
272 << pida->getTimestampAdjustment() << endl; | |
273 } | |
261 | 274 |
262 } else { | 275 } else { |
263 | 276 |
264 if (transform.getStepSize() == 0 || transform.getBlockSize() == 0) { | 277 if (transform.getStepSize() == 0 || transform.getBlockSize() == 0) { |
265 | 278 |