mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
add comment to help explain Region::source_beats_to_absolute_beats()
This commit is contained in:
parent
9a9bc3408f
commit
9d7d158abd
1 changed files with 3 additions and 0 deletions
|
|
@ -2024,6 +2024,9 @@ Region::region_distance_to_region_beats (timecnt_t const & region_relative_offse
|
|||
Temporal::Beats
|
||||
Region::source_beats_to_absolute_beats (Temporal::Beats beats) const
|
||||
{
|
||||
/* since the return type must be beats, force source_position() to
|
||||
beats before adding, rather than after.
|
||||
*/
|
||||
return source_position().beats() + beats;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue