commit e7735b3d08e40bec0d01ca1246ba0cb2f1c167ea
parent 7c656e8d4729a363a41066c431cebaf93bd00c05
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date: Fri, 9 Jul 2021 10:56:54 +0200
value/text conversions are done on the main thread
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/clap/ext/params.h b/include/clap/ext/params.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "../clap.h"
@@ -127,10 +127,12 @@ typedef struct clap_plugin_params {
bool (*value)(const clap_plugin *plugin, clap_id param_id, double *value);
// Formats the display text for the given parameter value.
- // [thread-safe,lock-wait-free]
+ // [main-thread]
bool (*value_to_text)(
const clap_plugin *plugin, clap_id param_id, double value, char *display, uint32_t size);
+ // Converts the display text to a parameter value.
+ // [main-thread]
bool (*text_to_value)(const clap_plugin *plugin,
clap_id param_id,
const char * display,