mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +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. |
||
|---|---|---|
| .. | ||
| MSVCtemporal | ||
| temporal | ||
| bbt_time.cc | ||
| beats.cc | ||
| debug.cc | ||
| enums.cc | ||
| range.cc | ||
| superclock.cc | ||
| tempo.cc | ||
| test.cc | ||
| test2.cc | ||
| time.cc | ||
| timeline.cc | ||
| wscript | ||