From 400018e12184b9580135feec952554eaff3dba63 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 10 Dec 2020 21:11:31 -0700 Subject: [PATCH] Temporal: implement timepos_t::compute_ticks() --- libs/temporal/temporal/timeline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/temporal/temporal/timeline.h b/libs/temporal/temporal/timeline.h index dc6d3f9d33..e9daeac04b 100644 --- a/libs/temporal/temporal/timeline.h +++ b/libs/temporal/temporal/timeline.h @@ -338,7 +338,7 @@ class LIBTEMPORAL_API timecnt_t { superclock_t superclocks() const { if (!_distance.flagged()) return _distance.val(); return compute_superclocks(); } int64_t samples() const { return superclock_to_samples (superclocks(), TEMPORAL_SAMPLE_RATE); } Temporal::Beats beats () const { if (_distance.flagged()) return Beats::ticks (_distance.val()); return compute_beats(); } - int64_t ticks () const { if (_distance.flagged()) return _distance.val(); return compute_ticks(); } + int64_t ticks () const { return beats().to_ticks(); } timecnt_t & operator= (Temporal::Beats const & b) { _distance = int62_t (true, b.to_ticks()); return *this; }