Fix for timepos_t::earlier() - superclock_t vs.samplepos_t confusion

This commit is contained in:
Paul Davis 2025-06-17 14:00:29 -06:00
parent 35851d0cc8
commit fc692f5680

View file

@ -664,7 +664,7 @@ timepos_t::earlier (Temporal::BBT_Offset const & offset) const
TempoMap::SharedPtr tm (TempoMap::use()); TempoMap::SharedPtr tm (TempoMap::use());
if (is_superclock()) { if (is_superclock()) {
return timepos_t (tm->superclock_at (BBT_Argument (this->superclocks(), tm->bbt_walk (BBT_Argument (this->superclocks(), tm->bbt_at (*this)), -offset)))); return timepos_t::from_superclock (tm->superclock_at (tm->bbt_walk (BBT_Argument (this->superclocks(), tm->bbt_at (*this)), -offset)));
} }
return timepos_t (tm->bbtwalk_to_quarters (beats(), -offset)); return timepos_t (tm->bbtwalk_to_quarters (beats(), -offset));