aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-27 10:09:39 -0800
committerChris Robinson <[email protected]>2020-12-27 10:28:59 -0800
commitadb54677208c8dba40e60cd0731a11219cbbe319 (patch)
tree8fd1949a549b9b2a42439d88f7c9a5ac118d02e2 /alc
parent4c0f77c13e5e38b6fb4c4e2746a6f1adf373f290 (diff)
Use smaller types for enums
Diffstat (limited to 'alc')
-rw-r--r--alc/alcmain.h4
-rw-r--r--alc/alcontext.h2
-rw-r--r--alc/voice.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/alc/alcmain.h b/alc/alcmain.h
index 92c69b74..2ba19c47 100644
--- a/alc/alcmain.h
+++ b/alc/alcmain.h
@@ -53,14 +53,14 @@ using uint = unsigned int;
#define DEFAULT_NUM_UPDATES 3
-enum class DeviceType {
+enum class DeviceType : unsigned char {
Playback,
Capture,
Loopback
};
-enum class RenderMode {
+enum class RenderMode : unsigned char {
Normal,
Pairwise,
Hrtf
diff --git a/alc/alcontext.h b/alc/alcontext.h
index ac5c53f7..4e2bcdd7 100644
--- a/alc/alcontext.h
+++ b/alc/alcontext.h
@@ -33,7 +33,7 @@ struct RingBuffer;
struct VoiceChange;
-enum class DistanceModel {
+enum class DistanceModel : unsigned char {
Disable,
Inverse, InverseClamped,
Linear, LinearClamped,
diff --git a/alc/voice.h b/alc/voice.h
index 1a49bd81..07260c3e 100644
--- a/alc/voice.h
+++ b/alc/voice.h
@@ -19,7 +19,7 @@
struct ALCcontext;
struct EffectSlot;
-enum class DistanceModel;
+enum class DistanceModel : unsigned char;
using uint = unsigned int;