diff transform/FeatureExtractionPluginTransform.cpp @ 137:006c90387f40

* Fix many compile warnings, remove some debug output
author Chris Cannam
date Mon, 30 Apr 2007 13:36:23 +0000
parents 7a5ba9dadbf7
children dfaf4f9330b5
line wrap: on
line diff
--- a/transform/FeatureExtractionPluginTransform.cpp	Mon Apr 30 09:34:13 2007 +0000
+++ b/transform/FeatureExtractionPluginTransform.cpp	Mon Apr 30 13:36:23 2007 +0000
@@ -432,7 +432,7 @@
 	if (feature.hasTimestamp) {
 	    //!!! warning: sampleRate may be non-integral
 	    frame = Vamp::RealTime::realTime2Frame(feature.timestamp,
-                                                   m_descriptor->sampleRate);
+                                                   lrintf(m_descriptor->sampleRate));
 	} else {
 	    frame = m_output->getEndFrame();
 	}
@@ -468,7 +468,9 @@
         NoteModel *model = getOutput<NoteModel>();
         if (!model) return;
 
-        model->addPoint(NoteModel::Point(frame, pitch, duration, feature.label.c_str()));
+        model->addPoint(NoteModel::Point(frame, pitch,
+                                         lrintf(duration),
+                                         feature.label.c_str()));
 	
     } else {