comparison runner/FeatureExtractionManager.cpp @ 26:0af07912f386

* Use ShiftData method for PluginInputDomainAdapter, ensuring data is pre-padded so that the first block received by the plugin is that centred on 0 rather than starting on 0
author Chris Cannam
date Wed, 16 Sep 2009 11:28:21 +0000
parents af5e469ac654
children 8b20521fc40f
comparison
equal deleted inserted replaced
25:af5e469ac654 26:0af07912f386
206 PluginInputDomainAdapter *pida = 0; 206 PluginInputDomainAdapter *pida = 0;
207 207
208 // adapt the plugin for buffering, channels, etc. 208 // adapt the plugin for buffering, channels, etc.
209 if (plugin->getInputDomain() == Plugin::FrequencyDomain) { 209 if (plugin->getInputDomain() == Plugin::FrequencyDomain) {
210 pida = new PluginInputDomainAdapter(plugin); 210 pida = new PluginInputDomainAdapter(plugin);
211 pida->setProcessTimestampMethod(PluginInputDomainAdapter::ShiftData);
211 plugin = pida; 212 plugin = pida;
212 } 213 }
213 214
214 PluginBufferingAdapter *pba = new PluginBufferingAdapter(plugin); 215 PluginBufferingAdapter *pba = new PluginBufferingAdapter(plugin);
215 plugin = pba; 216 plugin = pba;