clap

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

commit 45aec8237a90d9da867d4a10f5fc094548490341
parent 8fddd5b70352d01f9d5a1f23d4627a008d2feac4
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Sun,  9 Jan 2022 12:25:32 +0100

Use an array, much easier

Diffstat:
Minclude/clap/plugin.h | 18++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/include/clap/plugin.h b/include/clap/plugin.h @@ -24,9 +24,11 @@ typedef struct clap_plugin_descriptor { const char *version; // eg: "1.4.4" const char *description; // eg: "The spirit of analogue" - // Arbitrary list of keywords, separated by `;' + // Arbitrary list of keywords. // They can be matched by the host search engine and used to classify the plugin. // + // The array of pointers must be null terminated. + // // Some pre-defined keywords: // - "instrument", "audio_effect", "note_effect", "analyzer" // - "mono", "stereo", "surround", "ambisonic" @@ -38,13 +40,13 @@ typedef struct clap_plugin_descriptor { // - "win32-dpi-aware" informs the host that this plugin is dpi-aware on Windows // // Some examples: - // "equalizer;analyzer;stereo;mono" - // "compressor;analog;character;mono" - // "reverb;plate;stereo" - // "reverb;spring;surround" - // "kick;analog;808;roland;drum;mono;instrument" - // "instrument;chiptune;gameboy;nintendo;sega;mono" - const char *features; + // - equalizer, analyzer, stereo, mono + // - compressor, analog, character, mono + // - reverb, plate, stereo + // - reverb, spring, surround + // - kick, analog, 808, roland, drum, mono, instrument + // - instrument, chiptune, gameboy, nintendo, sega, mono + const char **features; } clap_plugin_descriptor_t; typedef struct clap_plugin {