13
0
livetrax/libs/temporal/test
Mads Kiilerich 91314b68a5 temporal: always use Temporal::reset() for superclock and TempoMap default values
Make sure all code paths that use Temporal will initialize and reset it
properly. Some code paths (in tet runners) doesn't use Sessions, so
Temporal::reset() has to be invoked directly.

Just set the static superclock variable to 0 as initial value.
TempoMap will still be initialized early as a singleton, but we
introduce a new constructor so it is created empty (and thus not really
usable until Temporal::reset() or similar has populated it).

We can thus drop the static initialization of superclock. The default
superclock rate of 282240000 will now only live in Temporal::reset().

With this change there should no longer be any uninitialized use of
superclock_ticks_per_second(), and there should not be any problems for
DEBUG_EARLY_SCTS_USE to catch. (It is however broken in other ways -
that will be fixed next.)
2023-09-20 12:30:53 -06:00
..
BBTTest.cc fix libtemporal tests after API changes to the library 2023-02-15 17:51:28 -07:00
BBTTest.h
BeatTest.cc convert internal implementation of Temporal::Beats to just use a 64 bit tick value 2022-06-21 12:26:54 -06:00
BeatTest.h temporal: add (back) first set of unit tests 2022-02-12 15:12:35 -07:00
RangeTest.cc fix RangeTest to account for Range now using exclusive ends, not inclusive 2022-10-05 17:30:45 -06:00
RangeTest.h
TempoMapCutBufferTest.cc temporal: unit testing more like unit testing 2023-06-08 14:01:17 -06:00
TempoMapCutBufferTest.h add skeleton unit test for tempo map cut buffer 2023-05-04 18:48:50 -06:00
TempoMapTest.cc temporal: fix bad escape sequence in test source code 2023-02-15 18:36:23 -07:00
TempoMapTest.h temporal: add skeleton for TempoMap tests 2022-02-12 22:25:17 -07:00
testrunner.cc temporal: always use Temporal::reset() for superclock and TempoMap default values 2023-09-20 12:30:53 -06:00
TimelineTest.cc
TimelineTest.h temporal: add skeleton for Timeline (timepos_t/timecnt_t) tests 2022-02-12 22:25:17 -07:00