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.

30 lines
792B

  1. #pragma once
  2. #include "../plugin.h"
  3. static CLAP_CONSTEXPR const char CLAP_EXT_TIMER_SUPPORT[] = "clap.timer-support";
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct clap_plugin_timer_support {
  8. // [main-thread]
  9. void (CLAP_ABI *on_timer)(const clap_plugin_t *plugin, clap_id timer_id);
  10. } clap_plugin_timer_support_t;
  11. typedef struct clap_host_timer_support {
  12. // Registers a periodic timer.
  13. // The host may adjust the period if it is under a certain threshold.
  14. // 30 Hz should be allowed.
  15. // [main-thread]
  16. bool (CLAP_ABI *register_timer)(const clap_host_t *host, uint32_t period_ms, clap_id *timer_id);
  17. // [main-thread]
  18. bool (CLAP_ABI *unregister_timer)(const clap_host_t *host, clap_id timer_id);
  19. } clap_host_timer_support_t;
  20. #ifdef __cplusplus
  21. }
  22. #endif