clap

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

commit cde87e213ef3cc867fb20b61d03bd1c7ec882a92
parent e5f86fbcd20183d948f544757479cf1c8c2a5037
Author: Dalton Messmer <33463986+messmerd@users.noreply.github.com>
Date:   Thu,  2 Nov 2023 23:58:39 -0400

Clarify return values and fix style in audio-ports-config.h
Diffstat:
Minclude/clap/ext/audio-ports-config.h | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/include/clap/ext/audio-ports-config.h b/include/clap/ext/audio-ports-config.h @@ -54,20 +54,21 @@ typedef struct clap_audio_ports_config { // The audio ports config scan has to be done while the plugin is deactivated. typedef struct clap_plugin_audio_ports_config { - // gets the number of available configurations + // Gets the number of available configurations // [main-thread] uint32_t(CLAP_ABI *count)(const clap_plugin_t *plugin); - // gets information about a configuration + // Gets information about a configuration + // Returns true on success and stores the result into config. // [main-thread] bool(CLAP_ABI *get)(const clap_plugin_t *plugin, uint32_t index, clap_audio_ports_config_t *config); - // selects the configuration designated by id - // returns true if the configuration could be applied. + // Selects the configuration designated by id + // Returns true if the configuration could be applied. // Once applied the host should scan again the audio ports. - // [main-thread,plugin-deactivated] + // [main-thread & plugin-deactivated] bool(CLAP_ABI *select)(const clap_plugin_t *plugin, clap_id config_id); } clap_plugin_audio_ports_config_t; @@ -82,6 +83,7 @@ typedef struct clap_plugin_audio_ports_config_info { // Get info about an audio port, for a given config_id. // This is analogous to clap_plugin_audio_ports.get(). + // Returns true on success and stores the result into info. // [main-thread] bool(CLAP_ABI *get)(const clap_plugin_t *plugin, clap_id config_id,