aboutsummaryrefslogtreecommitdiffstats
path: root/alc/ambidefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'alc/ambidefs.h')
-rw-r--r--alc/ambidefs.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/alc/ambidefs.h b/alc/ambidefs.h
index 17a9815b..9bc3e969 100644
--- a/alc/ambidefs.h
+++ b/alc/ambidefs.h
@@ -2,6 +2,7 @@
#define AMBIDEFS_H
#include <array>
+#include <cstdint>
/* The maximum number of Ambisonics channels. For a given order (o), the size
* needed will be (o+1)**2, thus zero-order has 1, first-order has 4, second-
@@ -84,7 +85,7 @@ struct AmbiScale {
};
struct AmbiIndex {
- static constexpr std::array<int,MAX_AMBI_CHANNELS> FromFuMa{{
+ static constexpr std::array<uint8_t,MAX_AMBI_CHANNELS> FromFuMa{{
0, /* W */
3, /* X */
1, /* Y */
@@ -102,15 +103,15 @@ struct AmbiIndex {
15, /* P */
9, /* Q */
}};
- static constexpr std::array<int,MAX_AMBI_CHANNELS> FromACN{{
+ static constexpr std::array<uint8_t,MAX_AMBI_CHANNELS> FromACN{{
0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, 15
}};
- static constexpr std::array<int,MAX_AMBI2D_CHANNELS> From2D{{
+ static constexpr std::array<uint8_t,MAX_AMBI2D_CHANNELS> From2D{{
0, 1,3, 4,8, 9,15
}};
- static constexpr std::array<int,MAX_AMBI_CHANNELS> From3D{{
+ static constexpr std::array<uint8_t,MAX_AMBI_CHANNELS> From3D{{
0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, 15
}};