comparison plugins/OnsetDetect.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 d47b22cf47bc
children 4a354c18e688
comparison
equal deleted inserted replaced
94:f46864eba7fd 95:e51152b7ee06
270 270
271 size_t 271 size_t
272 OnsetDetector::getPreferredStepSize() const 272 OnsetDetector::getPreferredStepSize() const
273 { 273 {
274 size_t step = size_t(m_inputSampleRate * m_preferredStepSecs + 0.0001); 274 size_t step = size_t(m_inputSampleRate * m_preferredStepSecs + 0.0001);
275 if (step < 1) step = 1;
275 // std::cerr << "OnsetDetector::getPreferredStepSize: input sample rate is " << m_inputSampleRate << ", step size is " << step << std::endl; 276 // std::cerr << "OnsetDetector::getPreferredStepSize: input sample rate is " << m_inputSampleRate << ", step size is " << step << std::endl;
276 return step; 277 return step;
277 } 278 }
278 279
279 size_t 280 size_t