Mercurial > hg > pub > prymula > com
view DPF-Prymula-audioplugins/dpf/distrho/src/clap/fixedpoint.h @ 5:0c50890ef159
flappyufo-0.230919-1
author | prymula <prymula76@outlook.com> |
---|---|
date | Wed, 31 Jan 2024 13:23:13 +0100 |
parents | 84e66ea83026 |
children |
line wrap: on
line source
#pragma once #include "private/std.h" #include "private/macros.h" /// We use fixed point representation of beat time and seconds time /// Usage: /// double x = ...; // in beats /// clap_beattime y = round(CLAP_BEATTIME_FACTOR * x); // This will never change static const CLAP_CONSTEXPR int64_t CLAP_BEATTIME_FACTOR = 1LL << 31; static const CLAP_CONSTEXPR int64_t CLAP_SECTIME_FACTOR = 1LL << 31; typedef int64_t clap_beattime; typedef int64_t clap_sectime;