LMMS
Loading...
Searching...
No Matches
latency.h
Go to the documentation of this file.
1#pragma once
2
3#include "../plugin.h"
4
5static CLAP_CONSTEXPR const char CLAP_EXT_LATENCY[] = "clap.latency";
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11// The audio ports scan has to be done while the plugin is deactivated.
12typedef struct clap_plugin_latency {
13 // Returns the plugin latency.
14 // [main-thread]
15 uint32_t(CLAP_ABI *get)(const clap_plugin_t *plugin);
17
18typedef 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);
25
26#ifdef __cplusplus
27}
28#endif
struct clap_host clap_host_t
struct clap_plugin_latency clap_plugin_latency_t
struct clap_host_latency clap_host_latency_t
static CLAP_CONSTEXPR const char CLAP_EXT_LATENCY[]
Definition latency.h:5
#define CLAP_ABI
Definition macros.h:24
#define CLAP_CONSTEXPR
Definition macros.h:32
struct clap_plugin clap_plugin_t
Definition latency.h:18
void(CLAP_ABI *changed)(const clap_host_t *host)
Definition latency.h:12
uint32_t(CLAP_ABI *get)(const clap_plugin_t *plugin)