Skip to content

Commit 8323ec1

Browse files
Trinitouabique
authored andcommitted
Adjust latency extension requirements
- allow plugin_latency->get to be called during plugin->activate - require host_latency->changed to be called during plugin->activate
1 parent 3c18216 commit 8323ec1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/clap/ext/latency.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ extern "C" {
1010

1111
typedef struct clap_plugin_latency {
1212
// Returns the plugin latency in samples.
13-
// [main-thread & active]
13+
// [main-thread & (being-activated | active)]
1414
uint32_t(CLAP_ABI *get)(const clap_plugin_t *plugin);
1515
} clap_plugin_latency_t;
1616

1717
typedef struct clap_host_latency {
1818
// Tell the host that the latency changed.
19-
// The latency is only allowed to change if the plugin is deactivated.
19+
// The latency is only allowed to change during plugin->activate.
2020
// If the plugin is activated, call host->request_restart()
21-
// [main-thread]
21+
// [main-thread & being-activated]
2222
void(CLAP_ABI *changed)(const clap_host_t *host);
2323
} clap_host_latency_t;
2424

0 commit comments

Comments
 (0)