comparison examples/PercussionOnsetDetector.cpp @ 36:6891b25dca1a

* avoid compiler warning
author cannam
date Wed, 20 Sep 2006 14:00:09 +0000
parents 154f86cb8c99
children e8ecff3a9001
comparison
equal deleted inserted replaced
35:154f86cb8c99 36:6891b25dca1a
253 m_dfMinus1 > (m_sensitivity * m_blockSize) / 200) { 253 m_dfMinus1 > (m_sensitivity * m_blockSize) / 200) {
254 254
255 Feature onset; 255 Feature onset;
256 onset.hasTimestamp = true; 256 onset.hasTimestamp = true;
257 onset.timestamp = ts - Vamp::RealTime::frame2RealTime 257 onset.timestamp = ts - Vamp::RealTime::frame2RealTime
258 (m_stepSize, m_inputSampleRate); 258 (m_stepSize, lrintf(m_inputSampleRate));
259 returnFeatures[0].push_back(onset); 259 returnFeatures[0].push_back(onset);
260 } 260 }
261 261
262 m_dfMinus2 = m_dfMinus1; 262 m_dfMinus2 = m_dfMinus1;
263 m_dfMinus1 = count; 263 m_dfMinus1 = count;