mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Make TempoMap::framewalk_to_beats () more correct.
This commit is contained in:
parent
ecd93207ad
commit
1316fe6601
1 changed files with 3 additions and 1 deletions
|
|
@ -3571,7 +3571,9 @@ TempoMap::framepos_plus_bbt (framepos_t pos, BBT_Time op) const
|
|||
Evoral::Beats
|
||||
TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const
|
||||
{
|
||||
return Evoral::Beats (beat_at_frame (pos + distance) - beat_at_frame (pos));
|
||||
Glib::Threads::RWLock::ReaderLock lm (lock);
|
||||
|
||||
return Evoral::Beats (beat_at_frame_locked (_metrics, pos + distance) - beat_at_frame_locked (_metrics, pos));
|
||||
}
|
||||
|
||||
struct bbtcmp {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue