commit 59a6f4fe0b6431d6b90e7583314bfb3995942b4f parent 38c67b66b09ebfaf0c89aa0b2a64ff9c1a4cdf57 Author: Alexandre BIQUE <bique.alexandre@gmail.com> Date: Sun, 25 Apr 2021 00:07:34 +0200 Add entry point to load a preset from a path Diffstat:
M | include/clap/ext/state.h | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/clap/ext/state.h b/include/clap/ext/state.h @@ -17,6 +17,10 @@ struct clap_plugin_state { /* Loads the plugin state from stream. * [main-thread] */ bool (*restore)(struct clap_plugin *plugin, struct clap_istream *stream); + + // Loads a preset in the plugin native preset file format from a path. + // [main-thread] + bool (*load_preset_from_file)(struct clap_plugin *plugin, const char *path); }; struct clap_host_state {