aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ringbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ringbuffer.h')
-rw-r--r--Alc/ringbuffer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Alc/ringbuffer.h b/Alc/ringbuffer.h
index 6554f95a..84139b66 100644
--- a/Alc/ringbuffer.h
+++ b/Alc/ringbuffer.h
@@ -31,7 +31,11 @@ struct RingBuffer {
size_t mSizeMask{0u};
size_t mElemSize{0u};
- alignas(16) al::byte mBuffer[];
+ al::FlexArray<al::byte, 16> mBuffer;
+
+ RingBuffer(const size_t count) : mBuffer{count} { }
+ RingBuffer(const RingBuffer&) = delete;
+ RingBuffer& operator=(const RingBuffer&) = delete;
/** Reset the read and write pointers to zero. This is not thread safe. */
void reset() noexcept;