aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-03-07 21:35:14 -0800
committerChris Robinson <[email protected]>2023-03-07 21:35:14 -0800
commite4b205414c73839710017fc28465110d9eb7b081 (patch)
tree0aa5a50965d087fc38a097f3e7ae899847cfbd61 /al/buffer.h
parentc6c8a13220867f05c26bc388bc8bb917fece151a (diff)
Don't use "hardware" for automatic buffer storage
Diffstat (limited to 'al/buffer.h')
-rw-r--r--al/buffer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/al/buffer.h b/al/buffer.h
index a22ba438..3a799aab 100644
--- a/al/buffer.h
+++ b/al/buffer.h
@@ -14,6 +14,12 @@
#ifdef ALSOFT_EAX
#include "eax/x_ram.h"
+
+enum class EaxStorage : uint8_t {
+ Automatic,
+ Accessible,
+ Hardware
+};
#endif // ALSOFT_EAX
/* User formats */
@@ -71,7 +77,7 @@ struct ALbuffer : public BufferStorage {
DISABLE_ALLOC()
#ifdef ALSOFT_EAX
- ALenum eax_x_ram_mode{AL_STORAGE_AUTOMATIC};
+ EaxStorage eax_x_ram_mode{EaxStorage::Automatic};
bool eax_x_ram_is_hardware{};
#endif // ALSOFT_EAX
};