summaryrefslogtreecommitdiff
path: root/libs/ardour/beats_frames_converter.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-12-17 01:51:12 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-12-17 01:51:12 +0000
commit428aabdcfc66ce2202b63cdf2de945e0651e50df (patch)
tree5bd89939fc31b375076c222efcb68060f2f0d211 /libs/ardour/beats_frames_converter.cc
parent39ebb427b3125c9c48c37d0cf05a27267efeb6a3 (diff)
fix BeatFramesConverter so that it at least works even if its not optimally named/designed
git-svn-id: svn://localhost/ardour2/branches/3.0@8290 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/beats_frames_converter.cc')
-rw-r--r--libs/ardour/beats_frames_converter.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/beats_frames_converter.cc b/libs/ardour/beats_frames_converter.cc
index c2c54eb9cd..69610aecd3 100644
--- a/libs/ardour/beats_frames_converter.cc
+++ b/libs/ardour/beats_frames_converter.cc
@@ -25,9 +25,9 @@
namespace ARDOUR {
framecnt_t
-BeatsFramesConverter::to(double beats) const
+BeatsFramesConverter::to (double beats) const
{
- return _tempo_map.framepos_plus_bbt (_origin_b, Timecode::BBT_Time(beats));
+ return _tempo_map.framepos_plus_bbt (_origin_b, Timecode::BBT_Time(beats)) - _origin_b;
}
double