Skip to content

Commit

Permalink
Add CLAP_PARAM_IS_ENUM to parameter flags
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
messmerd authored Nov 2, 2023
1 parent 094bb76 commit 5f6121a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/clap/ext/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5f6121a

Please sign in to comment.