convert internal implementation of Temporal::Beats to just use a 64 bit tick value

Multimedia / Ardour - Paul Davis [linuxaudiosystems.com] - 21 June 2022 18:26 UTC

This expands significantly the maximum number of Beats that can be represented, which is a good thing in itself. It slightly speeds up some Beats::operator methods, and slightly slows down ::get_beats() and ::get_ticks().

One minor change in an API user was required, and several tweaks to the unit tests due to the macros being used by cppunit creating possible type confusion.

Units test pass

696e05c3e5 convert internal implementation of Temporal::Beats to just use a 64 bit tick value
libs/temporal/tempo.cc | 2 +-
libs/temporal/temporal/beats.h | 111 +++++++++++------------------------------
libs/temporal/test/BeatTest.cc | 34 ++++++-------
3 files changed, 46 insertions(+), 101 deletions(-)

  • Share