From d74d488cd4e2e5d6e0d340cea8b99fc880459244 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 26 Feb 2011 22:52:24 +0000 Subject: [PATCH] Add comment about some inaccuracies in framepos_plus_bbt. git-svn-id: svn://localhost/ardour2/branches/3.0@8972 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/tempo.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index c5c60b948e..396caad46b 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -1906,6 +1906,12 @@ TempoMap::bbt_subtract (const BBT_Time& start, const BBT_Time& decrement) const framepos_t TempoMap::framepos_plus_bbt (framepos_t pos, BBT_Time op) const { + /* XXX: this is a little inaccurate as small errors are introduced + every time a probably-fractional product of something and + frames_per_beat is rounded. Other errors can be introduced + by op.ticks' integer nature. + */ + Metrics::const_iterator i; const MeterSection* meter; const MeterSection* m;