commit 989f1e642ccb8c82752bf46c9f8a20cd317ebd48
parent b31b26a0a1532115e08dc48b6c5c29519f76573c
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Wed, 18 Oct 2023 10:38:19 +0200
Merge pull request #355 from Trinitou/ambisonic-enums
Clarify ambisonic enums
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/clap/ext/draft/ambisonic.h b/include/clap/ext/draft/ambisonic.h
@@ -12,15 +12,15 @@ static CLAP_CONSTEXPR const char CLAP_PORT_AMBISONIC[] = "ambisonic";
extern "C" {
#endif
-enum {
+enum clap_ambisonic_ordering {
// FuMa channel ordering
- CLAP_AMBISONIC_FUMA = 0,
+ CLAP_AMBISONIC_ORDERING_FUMA = 0,
// ACN channel ordering
- CLAP_AMBISONIC_ACN = 1,
+ CLAP_AMBISONIC_ORDERING_ACN = 1,
};
-enum {
+enum clap_ambisonic_normalization {
CLAP_AMBISONIC_NORMALIZATION_MAXN = 0,
CLAP_AMBISONIC_NORMALIZATION_SN3D = 1,
CLAP_AMBISONIC_NORMALIZATION_N3D = 2,
@@ -29,8 +29,8 @@ enum {
};
typedef struct clap_ambisonic_config {
- uint32_t ordering;
- uint32_t normalization;
+ uint32_t ordering; // see clap_ambisonic_ordering
+ uint32_t normalization; // see clap_ambisonic_normalization
} clap_ambisonic_config_t;
typedef struct clap_plugin_ambisonic {