diff options
Diffstat (limited to 'raul')
-rw-r--r-- | raul/TimeSlice.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/raul/TimeSlice.h b/raul/TimeSlice.h index 0c8bab8..2d9c5ac 100644 --- a/raul/TimeSlice.h +++ b/raul/TimeSlice.h @@ -19,6 +19,7 @@ #define RAUL_TIMESLICE_H #include <cassert> +#include <cmath> #include <boost/utility.hpp> #include <raul/types.h> @@ -94,7 +95,7 @@ public: } inline TickTime beats_to_ticks(BeatTime beats) const { - return static_cast<TickTime>(beats_to_seconds(beats) / _tick_rate); + return static_cast<TickTime>(floor(beats_to_seconds(beats) / _tick_rate)); } inline Seconds ticks_to_seconds(TickTime ticks) const { |