diff transform/CSVFeatureWriter.cpp @ 1039:b14064bd1f97 cxx11

This code now compiles. Main problem: sample rate types
author Chris Cannam
date Tue, 03 Mar 2015 17:09:19 +0000
parents d74ebd2d2c49
children 26cf6d5251ec
line wrap: on
line diff
--- a/transform/CSVFeatureWriter.cpp	Tue Mar 03 15:18:24 2015 +0000
+++ b/transform/CSVFeatureWriter.cpp	Tue Mar 03 17:09:19 2015 +0000
@@ -133,7 +133,7 @@
 
     QTextStream &stream = *sptr;
 
-    int n = features.size();
+    int n = (int)features.size();
 
     if (n == 0) return;
 
@@ -223,7 +223,7 @@
 
     if (m_sampleTiming) {
 
-        float rate = transform.getSampleRate();
+        int rate = int(lrintf(transform.getSampleRate()));
 
         stream << Vamp::RealTime::realTime2Frame(f.timestamp, rate);