diff examples/PercussionOnsetDetector.cpp @ 210:a5187dad96cd

* Add example plugins VC project -- though it doesn't produce a working library yet
author cannam
date Fri, 17 Oct 2008 21:59:35 +0000
parents c8b48bc6db3d
children
line wrap: on
line diff
--- a/examples/PercussionOnsetDetector.cpp	Thu Oct 16 16:26:00 2008 +0000
+++ b/examples/PercussionOnsetDetector.cpp	Fri Oct 17 21:59:35 2008 +0000
@@ -267,7 +267,7 @@
         Feature onset;
         onset.hasTimestamp = true;
         onset.timestamp = ts - Vamp::RealTime::frame2RealTime
-            (m_stepSize, lrintf(m_inputSampleRate));
+            (m_stepSize, int(m_inputSampleRate + 0.5));
         returnFeatures[0].push_back(onset);
     }