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