clap

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

commit 12d2bc7b9683149ac0c3eb47330695e7e9eb324d
parent eaf22a6bb939c111978891e78796712011d99e6d
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Wed,  5 May 2021 22:24:59 +0200

Return bool so we can check if the value could corectly be retrived

Diffstat:
Minclude/clap/ext/params.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/clap/ext/params.h b/include/clap/ext/params.h @@ -59,13 +59,13 @@ typedef struct clap_plugin_params { // Gets the parameter plain value. // [main-thread] - clap_param_value (*get_value)(clap_plugin *plugin, int32_t param_index); + bool (*get_value)(clap_plugin *plugin, int32_t param_index, clap_param_value *plain_value); // Sets the parameter plain value. // If the plupin is activated, then the host must send a param event // in the next process call to update the audio processor. // [main-thread] - void (*set_value)(clap_plugin * plugin, + bool (*set_value)(clap_plugin * plugin, int32_t param_id, clap_param_value plain_value, clap_param_value plain_modulated_value);