# HG changeset patch # User cannam # Date 1158760809 0 # Node ID 6891b25dca1a4e4f7c863f126512f2e1dc2f5ae0 # Parent 154f86cb8c9995141d5c058e85a5d182b5739218 * avoid compiler warning diff -r 154f86cb8c99 -r 6891b25dca1a examples/PercussionOnsetDetector.cpp --- a/examples/PercussionOnsetDetector.cpp Wed Sep 20 13:51:22 2006 +0000 +++ b/examples/PercussionOnsetDetector.cpp Wed Sep 20 14:00:09 2006 +0000 @@ -255,7 +255,7 @@ Feature onset; onset.hasTimestamp = true; onset.timestamp = ts - Vamp::RealTime::frame2RealTime - (m_stepSize, m_inputSampleRate); + (m_stepSize, lrintf(m_inputSampleRate)); returnFeatures[0].push_back(onset); }