Mercurial > hg > pub > prymula > com
comparison DPF-Prymula-audioplugins/dpf/distrho/src/clap/ext/latency.h @ 3:84e66ea83026
DPF-Prymula-audioplugins-0.231015-2
author | prymula <prymula76@outlook.com> |
---|---|
date | Mon, 16 Oct 2023 21:53:34 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:cf2cb71d31dd | 3:84e66ea83026 |
---|---|
1 #pragma once | |
2 | |
3 #include "../plugin.h" | |
4 | |
5 static CLAP_CONSTEXPR const char CLAP_EXT_LATENCY[] = "clap.latency"; | |
6 | |
7 #ifdef __cplusplus | |
8 extern "C" { | |
9 #endif | |
10 | |
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; | |
17 | |
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; | |
25 | |
26 #ifdef __cplusplus | |
27 } | |
28 #endif |