changeset 36:6891b25dca1a

* avoid compiler warning
author cannam
date Wed, 20 Sep 2006 14:00:09 +0000
parents 154f86cb8c99
children e8ecff3a9001
files examples/PercussionOnsetDetector.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }