Though I don't know about CLAP specifically, the tail length is usually constant / only queried once by the host. So you need to supply the worst case to the host.
Code:
typedef struct clap_plugin_tail { // Returns tail length in samples. // Any value greater or equal to INT32_MAX implies infinite tail. // [main-thread,audio-thread] uint32_t(CLAP_ABI *get)(const clap_plugin_t *plugin);} clap_plugin_tail_t;typedef struct clap_host_tail { // Tell the host that the tail has changed. // [audio-thread] void(CLAP_ABI *changed)(const clap_host_t *host);} clap_host_tail_t;
Statistics: Posted by mystran — Sat Jul 27, 2024 10:14 am