partially revert some of the recent work on tempo to reflect new understanding of...
[ardour.git] / libs / ardour / beats_frames_converter.cc
index 215292f6c1a132b015150c990800e6b53143feb0..584732ff03e87029e8dfd8eb2fefa44d770da718 100644 (file)
@@ -32,7 +32,8 @@ framecnt_t
 BeatsFramesConverter::to (double beats) const
 {
        assert (beats >= 0);
-       return _tempo_map.framepos_plus_beats (_origin_b, beats) - _origin_b;
+       framecnt_t r = _tempo_map.framepos_plus_beats (_origin_b, beats) - _origin_b;
+       return r;
 }
 
 /** Takes a duration in frames and considers it as a distance from the origin
@@ -42,7 +43,8 @@ BeatsFramesConverter::to (double beats) const
 double
 BeatsFramesConverter::from (framecnt_t frames) const
 {
-       return _tempo_map.framewalk_to_beats (_origin_b, frames);
+       double b = _tempo_map.framewalk_to_beats (_origin_b, frames);
+       return b;
 }
 
 } /* namespace ARDOUR */