commit c47798bd1ed238bffffb07d8b3afc6c26c59238e
parent 37f8b77c66759ef4eabed5103dd74ac3c9536f41
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Tue, 3 Jan 2023 18:09:36 +0100
Simplify preset-load, to be able to load from a uri instead
Diffstat:
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/include/clap/ext/draft/preset-load.h b/include/clap/ext/draft/preset-load.h
@@ -9,19 +9,13 @@ extern "C" {
#endif
typedef struct clap_plugin_preset_load {
- // Loads a preset in the plugin native preset file format from a path.
- // [main-thread]
- bool(CLAP_ABI *from_file)(const clap_plugin_t *plugin, const char *path);
-
- // Loads a preset in the plugin native preset file format from a path which points to a preset
- // container file.
- // preset_id must be a valid string, which is specific to the plugin itself and identifies the
- // desired preset within the given preset container.
+ // Loads a preset in the plugin native preset file format from a URI. eg:
+ // - "file:///home/abique/.u-he/Diva/Presets/Diva/HS Bass Nine.h2p"
+ // - "file:///home/abique/my-sound-bank/<preset-id>"
+ // - "plugin://<plugin-id>/<preset-id>"
//
// [main-thread]
- bool(CLAP_ABI *from_container_file)(const clap_plugin_t *plugin,
- const char *path,
- const char *preset_id);
+ bool(CLAP_ABI *from_uri)(const clap_plugin_t *plugin, const char *uri);
} clap_plugin_preset_load_t;
#ifdef __cplusplus