aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'al/buffer.h')
-rw-r--r--al/buffer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/al/buffer.h b/al/buffer.h
index 64ebe1f3..f936cf98 100644
--- a/al/buffer.h
+++ b/al/buffer.h
@@ -2,10 +2,11 @@
#define AL_BUFFER_H
#include <atomic>
+#include <cstddef>
+#include <string_view>
#include "AL/al.h"
-#include "albyte.h"
#include "alc/inprogext.h"
#include "almalloc.h"
#include "atomic.h"
@@ -26,7 +27,7 @@ enum class EaxStorage : uint8_t {
struct ALbuffer : public BufferStorage {
ALbitfieldSOFT Access{0u};
- al::vector<al::byte,16> mDataStorage;
+ al::vector<std::byte,16> mDataStorage;
ALuint OriginalSize{0};
@@ -47,6 +48,8 @@ struct ALbuffer : public BufferStorage {
/* Self ID */
ALuint id{0};
+ static void SetName(ALCcontext *context, ALuint id, std::string_view name);
+
DISABLE_ALLOC()
#ifdef ALSOFT_EAX