temporal: more API tweaks as conversions continue in libardour

This commit is contained in:
Paul Davis 2020-09-20 22:36:33 -06:00
parent 6481b555ea
commit 169bbf3b08

View File

@ -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;