diff rdf/RDFFeatureWriter.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/rdf/RDFFeatureWriter.cpp	Tue Mar 03 15:18:24 2015 +0000
+++ b/rdf/RDFFeatureWriter.cpp	Tue Mar 03 17:09:19 2015 +0000
@@ -751,8 +751,10 @@
         RealTime startrt = transform.getStartTime();
         RealTime durationrt = transform.getDuration();
 
-        int start = RealTime::realTime2Frame(startrt, sampleRate) / stepSize;
-        int duration = RealTime::realTime2Frame(durationrt, sampleRate) / stepSize;
+        sv_frame_t start = RealTime::realTime2Frame
+            (startrt, int(lrintf(sampleRate))) / stepSize;
+        sv_frame_t duration = RealTime::realTime2Frame
+            (durationrt, int(lrintf(sampleRate))) / stepSize;
 
         if (start != 0) {
             stream << "\n        tl:start \"" << start << "\"^^xsd:int ;";