mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
Temporal: add ratio_t type (currently boost::rational<int64_T>
This commit is contained in:
parent
b1271a491e
commit
ead17ed35c
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#define __libpbd_position_types_h__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <boost/rational.hpp>
|
||||
|
||||
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<int64_t> ratio_t;
|
||||
|
||||
enum TimeDomain {
|
||||
/* simple ordinals, since these are mutually exclusive */
|
||||
AudioTime = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue