5 static CLAP_CONSTEXPR
const char CLAP_EXT_TIMER_SUPPORT
[] = "clap.timer-support";
11 typedef struct clap_plugin_timer_support
{
13 void (CLAP_ABI
*on_timer
)(const clap_plugin_t
*plugin
, clap_id timer_id
);
14 } clap_plugin_timer_support_t
;
16 typedef struct clap_host_timer_support
{
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.
21 bool (CLAP_ABI
*register_timer
)(const clap_host_t
*host
, uint32_t period_ms
, clap_id
*timer_id
);
24 bool (CLAP_ABI
*unregister_timer
)(const clap_host_t
*host
, clap_id timer_id
);
25 } clap_host_timer_support_t
;