clap

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

commit 4bc211c76c0b78c671452022f2ffec3479c62868
parent 54a51492ef519a9020d40aaab34893f1ae4be94e
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Mon, 16 Jan 2023 16:00:46 +0100

Remove the subpath

Diffstat:
Minclude/clap/factory/draft/preset-discovery.h | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/include/clap/factory/draft/preset-discovery.h b/include/clap/factory/draft/preset-discovery.h @@ -100,14 +100,9 @@ typedef struct clap_preset_discovery_metadata_receiver { // This must be called for every preset in the file and before any preset metadata is // sent with the calls below. // - // name is mandatory, it is the preset's name. - // - // If the preset file is a preset container then subpath and load_key are mandatory, + // If the preset file is a preset container then name and load_key are mandatory, // otherwise they must be null. // - // The subpath defines a human friendly path to the preset in the container file. - // It must be unique within the container file. - // // The load_key is a machine friendly string used to load the preset inside the container via a // the preset-load plug-in extension. The load_key can also just be the subpath if that's what // the plugin wants but it could also be some other unique id like a database primary key or a @@ -116,7 +111,6 @@ typedef struct clap_preset_discovery_metadata_receiver { // If the function returns false, the the provider must stop calling back into the receiver. bool(CLAP_ABI *begin_preset)(const struct clap_preset_discovery_metadata_receiver *receiver, const char *name, - const char *subpath, const char *load_key); // Adds a plug-in id that this preset can be used with. @@ -155,6 +149,10 @@ typedef struct clap_preset_discovery_metadata_receiver { // The feature string is arbitrary, it is the indexer's job to understand it and remap it to its // internal categorization and tagging system. // + // However, the strings from plugin-features.h should be understood by the indexer and one of the + // plugin category could be provided to determine if the preset will result into an audio-effect, + // instrument, ... + // // Examples: // kick, drum, tom, snare, clap, cymbal, bass, lead, metalic, hardsync, crossmod, acid, // distorted, drone, pad, dirty, etc...