commit b13db8435915e288ea86b84a7e7f53f2502add01
parent 1e2378d7a1dd17c47ef784af673be1ae1319a574
Author: trinitou <debuggleburger@gmail.com>
Date: Wed, 7 Feb 2024 23:30:42 +0100
Adjust latency extension requirements
- allow plugin_latency->get to be called during plugin->activate
- require host_latency->changed to be called during plugin->activate
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/clap/ext/latency.h b/include/clap/ext/latency.h
@@ -10,15 +10,15 @@ extern "C" {
typedef struct clap_plugin_latency {
// Returns the plugin latency in samples.
- // [main-thread & active]
+ // [main-thread & (being-activated | active)]
uint32_t(CLAP_ABI *get)(const clap_plugin_t *plugin);
} clap_plugin_latency_t;
typedef struct clap_host_latency {
// Tell the host that the latency changed.
- // The latency is only allowed to change if the plugin is deactivated.
+ // The latency is only allowed to change during plugin->activate.
// If the plugin is activated, call host->request_restart()
- // [main-thread]
+ // [main-thread & being-activated]
void(CLAP_ABI *changed)(const clap_host_t *host);
} clap_host_latency_t;