diff options
author | Carl Hetherington <carl@carlh.net> | 2011-12-11 14:50:36 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-12-11 14:50:36 +0000 |
commit | 1bbe08af1a44f46c13873b762decc7629274929d (patch) | |
tree | c7516ca9e7bdce095a906002f354e8e04dfa94bf /libs/ardour/test/framepos_plus_beats_test.cc | |
parent | ed360080d0e7a4505eb3e90f3f9946754f0c779b (diff) |
Keep track of MIDI region's start positions in beats, to
match the source, so that starts are not corrupted when
tempos change (#4494).
git-svn-id: svn://localhost/ardour2/branches/3.0@10976 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/test/framepos_plus_beats_test.cc')
-rw-r--r-- | libs/ardour/test/framepos_plus_beats_test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/test/framepos_plus_beats_test.cc b/libs/ardour/test/framepos_plus_beats_test.cc index 19aa7f29c6..882b6b5721 100644 --- a/libs/ardour/test/framepos_plus_beats_test.cc +++ b/libs/ardour/test/framepos_plus_beats_test.cc @@ -27,6 +27,10 @@ FrameposPlusBeatsTest::singleTempoTest () /* Add 1 beat to beat 3 of the first bar */ framepos_t r = map.framepos_plus_beats (frames_per_beat * 2, 1); CPPUNIT_ASSERT_EQUAL (r, framepos_t (frames_per_beat * 3)); + + /* Add 4 beats to a -ve frame of 1 beat before zero */ + r = map.framepos_plus_beats (-frames_per_beat * 1, 4); + CPPUNIT_ASSERT_EQUAL (r, framepos_t (frames_per_beat * 3)); } /* Test adding things that overlap a tempo change */ |