diff options
-rw-r--r-- | include/raul/TimeSlice.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/raul/TimeSlice.hpp b/include/raul/TimeSlice.hpp index 5d2da1e..594e1a9 100644 --- a/include/raul/TimeSlice.hpp +++ b/include/raul/TimeSlice.hpp @@ -95,11 +95,11 @@ public: } inline TimeStamp beats_to_seconds(TimeStamp beats) const { - return TimeStamp(real_unit(), beats.to_double() * 1/_beat_rate); + return {real_unit(), beats.to_double() * 1/_beat_rate}; } inline TimeStamp beats_to_ticks(TimeStamp beats) const { - return TimeStamp(ticks_unit(), beats.to_double() * _beat_rate * _tick_rate); + return {ticks_unit(), beats.to_double() * _beat_rate * _tick_rate}; } inline TimeStamp ticks_to_seconds(TimeStamp ticks) const { |