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.

latency.h 738B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "../plugin.h"
  3. static CLAP_CONSTEXPR const char CLAP_EXT_LATENCY[] = "clap.latency";
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. // The audio ports scan has to be done while the plugin is deactivated.
  8. typedef struct clap_plugin_latency {
  9. // Returns the plugin latency.
  10. // [main-thread]
  11. uint32_t(CLAP_ABI *get)(const clap_plugin_t *plugin);
  12. } clap_plugin_latency_t;
  13. typedef struct clap_host_latency {
  14. // Tell the host that the latency changed.
  15. // The latency is only allowed to change if the plugin is deactivated.
  16. // If the plugin is activated, call host->request_restart()
  17. // [main-thread]
  18. void(CLAP_ABI *changed)(const clap_host_t *host);
  19. } clap_host_latency_t;
  20. #ifdef __cplusplus
  21. }
  22. #endif