clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 7feb350fe23bc2a85554dc2fd34687a82c7a1ec7
parent 19a640b3e9681ff9d0dc986513c8c2ac0208aeb9
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Fri, 19 Jan 2024 16:58:24 +0100

Polish the plugin state converter

Diffstat:
Minclude/clap/factory/draft/plugin-state-converter.h | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/include/clap/factory/draft/plugin-state-converter.h b/include/clap/factory/draft/plugin-state-converter.h @@ -15,10 +15,11 @@ typedef struct clap_plugin_state_converter_descriptor { clap_universal_plugin_id_t src_plugin_id; clap_universal_plugin_id_t dst_plugin_id; - const char *name; - const char *vendor; - const char *version; - const char *description; + const char *id; // eg: "com.u-he.diva-converter", mandatory + const char *name; // eg: "Diva Converter", mandatory + const char *vendor; // eg: "u-he" + const char *version; // eg: 1.1.5 + const char *description; // eg: "Official state converter for u-he Diva." } clap_plugin_state_converter_descriptor_t; // This interface provides a mechanism for the host to convert a plugin state and its automation @@ -85,12 +86,12 @@ typedef struct clap_plugin_state_converter_factory { const clap_plugin_state_converter_descriptor_t *(*get_descriptor)( const struct clap_plugin_state_converter_factory *factory, uint32_t index); - // Create a plugin state converter by its index. + // Create a plugin state converter by its converter_id. // The returned pointer must be freed by calling converter->destroy(converter); // Returns null in case of error. // [thread-safe] clap_plugin_state_converter_t *(*create)( - const struct clap_plugin_state_converter_factory *factory, uint32_t index); + const struct clap_plugin_state_converter_factory *factory, const char *converter_id); } clap_plugin_state_converter_factory_t; #ifdef __cplusplus