LMMS
Loading...
Searching...
No Matches
timer-support.h
Go to the documentation of this file.
1#pragma once
2
3#include "../plugin.h"
4
5static CLAP_CONSTEXPR const char CLAP_EXT_TIMER_SUPPORT[] = "clap.timer-support";
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
12 // [main-thread]
13 void (CLAP_ABI *on_timer)(const clap_plugin_t *plugin, clap_id timer_id);
15
17 // Registers a periodic timer.
18 // The host may adjust the period if it is under a certain threshold.
19 // 30 Hz should be allowed.
20 // [main-thread]
21 bool (CLAP_ABI *register_timer)(const clap_host_t *host, uint32_t period_ms, clap_id *timer_id);
22
23 // [main-thread]
24 bool (CLAP_ABI *unregister_timer)(const clap_host_t *host, clap_id timer_id);
26
27#ifdef __cplusplus
28}
29#endif
struct clap_host clap_host_t
uint32_t clap_id
Definition id.h:6
#define CLAP_ABI
Definition macros.h:24
#define CLAP_CONSTEXPR
Definition macros.h:32
unsigned int uint32_t
Definition mid.cpp:100
struct clap_plugin clap_plugin_t
Definition timer-support.h:16
uint32_t period_ms
Definition timer-support.h:21
bool(CLAP_ABI *unregister_timer)(const clap_host_t *host
bool(CLAP_ABI *register_timer)(const clap_host_t *host
uint32_t clap_id * timer_id
Definition timer-support.h:21
Definition timer-support.h:11
clap_id timer_id
Definition timer-support.h:13
struct clap_plugin_timer_support clap_plugin_timer_support_t
static CLAP_CONSTEXPR const char CLAP_EXT_TIMER_SUPPORT[]
Definition timer-support.h:5
struct clap_host_timer_support clap_host_timer_support_t
#define void
Definition unzip.h:396