commit 5f6121aba00cd6f91213eff01a486d3e8cb78e91
parent 094bb76c85366a13cc6c49292226d8608d6ae50c
Author: Dalton Messmer <33463986+messmerd@users.noreply.github.com>
Date: Thu, 2 Nov 2023 01:25:20 -0400
Add CLAP_PARAM_IS_ENUM to parameter flags
Adds a CLAP_PARAM_IS_ENUM flag to clap_param_info_flags to denote an enum parameter. This flag tells the host when a parameter represents a set of named options mapped to integers, which can help the host decide how to present the parameter to users in its UI.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/clap/ext/params.h b/include/clap/ext/params.h
@@ -195,6 +195,12 @@ 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,
+
+ // The parameter represents a set of named options mapped to integers.
+ // It implies that the parameter is stepped.
+ //
+ // This flag may help the host decide how to present the parameter to users.
+ CLAP_PARAM_IS_ENUM = 1 << 16,
};
typedef uint32_t clap_param_info_flags;