Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
466B

  1. #pragma once
  2. #include "private/std.h"
  3. #include "private/macros.h"
  4. /// We use fixed point representation of beat time and seconds time
  5. /// Usage:
  6. /// double x = ...; // in beats
  7. /// clap_beattime y = round(CLAP_BEATTIME_FACTOR * x);
  8. // This will never change
  9. static const CLAP_CONSTEXPR int64_t CLAP_BEATTIME_FACTOR = 1LL << 31;
  10. static const CLAP_CONSTEXPR int64_t CLAP_SECTIME_FACTOR = 1LL << 31;
  11. typedef int64_t clap_beattime;
  12. typedef int64_t clap_sectime;