aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.h
diff options
context:
space:
mode:
authorBoris I. Bendovsky <[email protected]>2022-01-30 14:47:32 +0200
committerGitHub <[email protected]>2022-01-30 04:47:32 -0800
commit19ed994dc30ed84ea7cbbb5152577669fc25caf6 (patch)
treef68933bf8f778806618bd6c0b1bf9ced1b0ccf08 /al/buffer.h
parent619249371a40f03cf988d1f5750d643df797c485 (diff)
Add EAX extensions (EAX 2.0-5.0, X-RAM) (#632)
* Add EAX extensions (EAX 2.0-5.0, X-RAM) * Comment out C++17 leftovers * Remove everything related to patching * Update alsoftrc.sample * Rewrite integration * Fix GCC compilation under Linux * Always reset EAX effect properties when loading it into FX slot
Diffstat (limited to 'al/buffer.h')
-rw-r--r--al/buffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/al/buffer.h b/al/buffer.h
index a78c65c6..0514d984 100644
--- a/al/buffer.h
+++ b/al/buffer.h
@@ -12,6 +12,9 @@
#include "core/buffer_storage.h"
#include "vector.h"
+#if ALSOFT_EAX
+#include "eax_x_ram.h"
+#endif // ALSOFT_EAX
/* User formats */
enum UserFmtType : unsigned char {
@@ -68,6 +71,12 @@ struct ALbuffer : public BufferStorage {
ALuint id{0};
DISABLE_ALLOC()
+
+#if ALSOFT_EAX
+ ALenum eax_x_ram_mode{AL_STORAGE_AUTOMATIC};
+ bool eax_x_ram_is_hardware{};
+ bool eax_x_ram_is_dirty{};
+#endif // ALSOFT_EAX
};
#endif