aboutsummaryrefslogtreecommitdiffstats
path: root/core/device.h
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2023-05-06 12:08:15 -0700
committerChris Robinson <chris.kcat@gmail.com>2023-05-06 12:08:15 -0700
commit92046ee22ff8a80a1a5b463165a840078fad8caa (patch)
treecbd53b33eb1f45289dd4eff71718ae34c00630f5 /core/device.h
parent7c7b80ee49b4d8279c88e024039b8ff39ee14950 (diff)
Use more appropriate types for some enums
Diffstat (limited to 'core/device.h')
-rw-r--r--core/device.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/device.h b/core/device.h
index 9aaf7adb..bc180582 100644
--- a/core/device.h
+++ b/core/device.h
@@ -9,6 +9,7 @@
#include <chrono>
#include <memory>
#include <mutex>
+#include <stdint.h>
#include <string>
#include "almalloc.h"
@@ -43,20 +44,20 @@ using uint = unsigned int;
#define DEFAULT_NUM_UPDATES 3
-enum class DeviceType : unsigned char {
+enum class DeviceType : uint8_t {
Playback,
Capture,
Loopback
};
-enum class RenderMode : unsigned char {
+enum class RenderMode : uint8_t {
Normal,
Pairwise,
Hrtf
};
-enum class StereoEncoding : unsigned char {
+enum class StereoEncoding : uint8_t {
Basic,
Uhj,
Hrtf,