From ead17ed35c90fd60f13e117179e8a1ce51320c13 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 4 Aug 2020 13:49:57 -0600 Subject: [PATCH] Temporal: add ratio_t type (currently boost::rational --- libs/temporal/temporal/types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/temporal/temporal/types.h b/libs/temporal/temporal/types.h index 3907fb0c4e..68251bce4d 100644 --- a/libs/temporal/temporal/types.h +++ b/libs/temporal/temporal/types.h @@ -20,6 +20,7 @@ #define __libpbd_position_types_h__ #include +#include namespace Temporal { @@ -51,6 +52,8 @@ static const samplecnt_t max_samplecnt = INT64_MAX; static const int32_t ticks_per_beat = 1920; +typedef boost::rational ratio_t; + enum TimeDomain { /* simple ordinals, since these are mutually exclusive */ AudioTime = 0,