
subrepo: subdir: "deps/clap-juce-extensions/clap-libs/clap" merged: "3189bdfaf" upstream: origin: "https://github.com/free-audio/clap" branch: "main" commit: "3189bdfaf" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
29 lines
722 B
C
29 lines
722 B
C
#pragma once
|
|
|
|
#include "../plugin.h"
|
|
|
|
static CLAP_CONSTEXPR const char CLAP_EXT_LATENCY[] = "clap.latency";
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// The audio ports scan has to be done while the plugin is deactivated.
|
|
typedef struct clap_plugin_latency {
|
|
// Returns the plugin latency.
|
|
// [main-thread]
|
|
uint32_t (*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.
|
|
// If the plugin is activated, call host->request_restart()
|
|
// [main-thread]
|
|
void (*changed)(const clap_host_t *host);
|
|
} clap_host_latency_t;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|