comparison src/vamp-hostsdk/PluginSummarisingAdapter.cpp @ 272:9dc3a5e17600 vamp-plugin-sdk-v2.0pre2

* win32 avoid warning
author cannam
date Sat, 29 Nov 2008 12:06:14 +0000
parents 03c7167e1f30
children de3e865f92c8
comparison
equal deleted inserted replaced
271:23352e424631 272:9dc3a5e17600
228 std::cerr << "WARNING: Cannot call PluginSummarisingAdapter::process() or getRemainingFeatures() after one of the getSummary methods" << std::endl; 228 std::cerr << "WARNING: Cannot call PluginSummarisingAdapter::process() or getRemainingFeatures() after one of the getSummary methods" << std::endl;
229 } 229 }
230 FeatureSet fs = m_plugin->process(inputBuffers, timestamp); 230 FeatureSet fs = m_plugin->process(inputBuffers, timestamp);
231 accumulate(fs, timestamp, false); 231 accumulate(fs, timestamp, false);
232 m_endTime = timestamp + 232 m_endTime = timestamp +
233 RealTime::frame2RealTime(m_stepSize, m_inputSampleRate); 233 RealTime::frame2RealTime(m_stepSize, int(m_inputSampleRate + 0.5));
234 return fs; 234 return fs;
235 } 235 }
236 236
237 Plugin::FeatureSet 237 Plugin::FeatureSet
238 PluginSummarisingAdapter::Impl::getRemainingFeatures() 238 PluginSummarisingAdapter::Impl::getRemainingFeatures()