Temporal: what was that comment about not being able to disambiguate samples and superclocks?

This commit is contained in:
Paul Davis 2020-08-11 18:39:02 -06:00
parent 889edfd0a0
commit ddac0f7651
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class LIBTEMPORAL_API timepos_t : public int62_t {
* which means we cannot use polymorphism to differentiate them.
*/
static timepos_t from_superclock (superclock_t s) { return timepos_t (false, s); }
static timepos_t from_samples (superclock_t s) { return timepos_t (false, samples_to_superclock (s, _thread_sample_rate)); }
static timepos_t from_samples (samplepos_t s) { return timepos_t (false, samples_to_superclock (s, _thread_sample_rate)); }
bool is_beats() const { return flagged(); }
bool is_superclock() const { return !flagged(); }