mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 06:05:43 +01:00
::snap_to() was intended to round a Beats value to the nearest multiple of another Beats value. It did not do that, but instead rounded down. Worse, it used Beats::operator/ which in turn uses int_div_round(), which is incorrect for a situation where we need integer truncation. The changes fix the actual arithmetic and add 2 variant functions so that the API includes round down, round up and round to nearest. |
||
|---|---|---|
| .. | ||
| bbt_time.h | ||
| beats.h | ||
| debug.h | ||
| range.h | ||
| superclock.h | ||
| tempo-experiment.h | ||
| tempo.h | ||
| time.h | ||
| timeline.h | ||
| types.h | ||
| types_convert.h | ||
| visibility.h | ||