commit 858a09f4b949f7ab3a6fce1d6ce452d4c9f8bd18
parent e912f0639d6b6ac34f0b8e09e45092375977315b
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Fri, 3 Nov 2023 03:42:12 +0100
Merge pull request #358 from messmerd/enum-parameters
Add flag for enum parameters
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/clap/ext/params.h b/include/clap/ext/params.h
@@ -195,6 +195,11 @@ enum {
// A simple example would be a DC Offset, changing it will change the output signal and must be
// processed.
CLAP_PARAM_REQUIRES_PROCESS = 1 << 15,
+
+ // Indicates that this parameter represents an enumerated value.
+ // If you set this flag, then you must set CLAP_PARAM_IS_STEPPED too.
+ // All values from min to max must have a non blank value_to_text().
+ CLAP_PARAM_IS_ENUM = 1 << 16,
};
typedef uint32_t clap_param_info_flags;