From 169bbf3b08c520efb1437d3ef1664eef6523908d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 20 Sep 2020 22:36:33 -0600 Subject: [PATCH] temporal: more API tweaks as conversions continue in libardour --- libs/temporal/temporal/timeline.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/temporal/temporal/timeline.h b/libs/temporal/temporal/timeline.h index 6686c4e527..d11a0a1db5 100644 --- a/libs/temporal/temporal/timeline.h +++ b/libs/temporal/temporal/timeline.h @@ -303,7 +303,7 @@ class LIBTEMPORAL_API timecnt_t { /* construct from beats */ explicit timecnt_t (Temporal::Beats const & b, timepos_t const & pos) : _distance (true, b.to_ticks()), _position (pos) { assert ( _distance.flagged() == _position.is_beats()); } - static timecnt_t zero_at (TimeDomain td, timepos_t const & pos) { return timecnt_t (timepos_t (td), pos); } + static timecnt_t zero (TimeDomain td) { return timecnt_t (timepos_t::zero (td), timepos_t::zero (td)); } /* superclock_t and samplepos_t are the same underlying primitive type, * See comments in timepos_t above. @@ -328,6 +328,7 @@ class LIBTEMPORAL_API timecnt_t { bool zero() const { return _distance.val() == 0; } static timecnt_t const & max() { return _max_timecnt; } + static timecnt_t max (Temporal::TimeDomain td) { return timecnt_t (timepos_t::max (td)); } timecnt_t abs() const;