tail.h (599B)
1 #pragma once 2 3 #include "../plugin.h" 4 5 static CLAP_CONSTEXPR const char CLAP_EXT_TAIL[] = "clap.tail"; 6 7 #ifdef __cplusplus 8 extern "C" { 9 #endif 10 11 typedef struct clap_plugin_tail { 12 // Returns tail length in samples. 13 // Any value greater or equal to INT32_MAX implies infinite tail. 14 // [main-thread,audio-thread] 15 uint32_t(CLAP_ABI *get)(const clap_plugin_t *plugin); 16 } clap_plugin_tail_t; 17 18 typedef struct clap_host_tail { 19 // Tell the host that the tail has changed. 20 // [audio-thread] 21 void(CLAP_ABI *changed)(const clap_host_t *host); 22 } clap_host_tail_t; 23 24 #ifdef __cplusplus 25 } 26 #endif