mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Fix for timepos_t::earlier() - superclock_t vs.samplepos_t confusion
This commit is contained in:
parent
35851d0cc8
commit
fc692f5680
1 changed files with 1 additions and 1 deletions
|
|
@ -664,7 +664,7 @@ timepos_t::earlier (Temporal::BBT_Offset const & offset) const
|
|||
TempoMap::SharedPtr tm (TempoMap::use());
|
||||
|
||||
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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue