remove API from Temporal:timecnt_t that used superclock_t

Not possible for a compiler to differentiate superclock_t and sample(pos|cnt)_t, which can lead to
subtle but major errors
This commit is contained in:
Paul Davis
2020-12-06 12:56:33 -07:00
parent 9402548677
commit afea443419

View File

@@ -340,7 +340,6 @@ class LIBTEMPORAL_API timecnt_t {
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(); }
timecnt_t & operator= (superclock_t s) { _distance = int62_t (false, s); return *this; }
timecnt_t & operator= (Temporal::Beats const & b) { _distance = int62_t (true, b.to_ticks()); return *this; }
/* return a timecnt_t that is the next/previous (earlier/later) possible position given