LMMS
Loading...
Searching...
No Matches
fixedpoint.h File Reference
#include "private/std.h"
#include "private/macros.h"

Go to the source code of this file.

Typedefs

typedef int64_t clap_beattime
typedef int64_t clap_sectime

Variables

static const CLAP_CONSTEXPR int64_t CLAP_BEATTIME_FACTOR = 1LL << 31
static const CLAP_CONSTEXPR int64_t CLAP_SECTIME_FACTOR = 1LL << 31

Typedef Documentation

◆ clap_beattime

typedef int64_t clap_beattime

◆ clap_sectime

typedef int64_t clap_sectime

Variable Documentation

◆ CLAP_BEATTIME_FACTOR

const CLAP_CONSTEXPR int64_t CLAP_BEATTIME_FACTOR = 1LL << 31
static

We use fixed point representation of beat time and seconds time Usage: double x = ...; // in beats clap_beattime y = round(CLAP_BEATTIME_FACTOR * x);

◆ CLAP_SECTIME_FACTOR

const CLAP_CONSTEXPR int64_t CLAP_SECTIME_FACTOR = 1LL << 31
static