Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1038:cc27f35aa75c | 1039:b14064bd1f97 |
---|---|
749 << "\n tl:onTimeLine :feature_timeline_" << featureNumber << " ;"; | 749 << "\n tl:onTimeLine :feature_timeline_" << featureNumber << " ;"; |
750 | 750 |
751 RealTime startrt = transform.getStartTime(); | 751 RealTime startrt = transform.getStartTime(); |
752 RealTime durationrt = transform.getDuration(); | 752 RealTime durationrt = transform.getDuration(); |
753 | 753 |
754 int start = RealTime::realTime2Frame(startrt, sampleRate) / stepSize; | 754 sv_frame_t start = RealTime::realTime2Frame |
755 int duration = RealTime::realTime2Frame(durationrt, sampleRate) / stepSize; | 755 (startrt, int(lrintf(sampleRate))) / stepSize; |
756 sv_frame_t duration = RealTime::realTime2Frame | |
757 (durationrt, int(lrintf(sampleRate))) / stepSize; | |
756 | 758 |
757 if (start != 0) { | 759 if (start != 0) { |
758 stream << "\n tl:start \"" << start << "\"^^xsd:int ;"; | 760 stream << "\n tl:start \"" << start << "\"^^xsd:int ;"; |
759 } | 761 } |
760 if (duration != 0) { | 762 if (duration != 0) { |