commit 4099eca5109a0cdcd40a7f8bbf9e27c3f5d6d6a6 parent 7f6f6259b422064bd52eac99b374fcdf0f82d890 Author: defiantnerd <97224712+defiantnerd@users.noreply.github.com> Date: Wed, 11 Jan 2023 22:22:02 +0100 added current_config() added current_config() in method in clap_plugin_audio_ports_config_info_t Diffstat:
M | include/clap/ext/audio-ports-config.h | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/include/clap/ext/audio-ports-config.h b/include/clap/ext/audio-ports-config.h @@ -72,6 +72,13 @@ typedef struct clap_plugin_audio_ports_config { typedef struct clap_plugin_audio_ports_config_info { // get info about about an audio port. + + // gets the clap_id of the currently selected config + // clap_id might now match the index, can be used to call + // clap_plugin_audio_ports_config::select() + // [main-thread] + clap_id(CLAP_ABI* current_config)(const clap_plugin_t* plugin); + // [main-thread] bool(CLAP_ABI* get)(const clap_plugin_t* plugin, clap_id config_id,