Skip to content

Commit

Permalink
Merge pull request #358 from messmerd/enum-parameters
Browse files Browse the repository at this point in the history
Add flag for enum parameters
  • Loading branch information
abique authored Nov 3, 2023
2 parents e912f06 + db714f0 commit 858a09f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/clap/ext/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 858a09f

Please sign in to comment.