clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 43a9fdf8c84a97a411ed7cd6fba2d63abc791dde
parent 66237be5c5d4c4105cdbe7bea50dfe0c418c85e6
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Mon, 12 Jul 2021 17:30:21 +0200

Fixed point needs a round()


Diffstat:
Minclude/clap/fixedpoint.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/clap/fixedpoint.h b/include/clap/fixedpoint.h @@ -7,7 +7,7 @@ /// We use fixed point representation of beat time and seconds time /// Usage: /// double x = ...; // in beats -/// clap_beattime y = CLAP_BEATTIME_FACTOR * x; +/// clap_beattime y = round(CLAP_BEATTIME_FACTOR * x); // This will never change static const CLAP_CONSTEXPR int64_t CLAP_BEATTIME_FACTOR = 1LL << 31;