Quantcast
Channel: KVR Audio
Viewing all articles
Browse latest Browse all 5091

DSP and Plugin Development • Re: Calculating delay tail

$
0
0
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;
So you can definitely tell the host that the tail has changed and you can do so in the audio thread.

Statistics: Posted by mystran — Sat Jul 27, 2024 10:14 am



Viewing all articles
Browse latest Browse all 5091

Trending Articles