diff options
author | Chris Robinson <[email protected]> | 2019-05-26 12:54:54 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-26 12:54:54 -0700 |
commit | 20e3c78aef6b745d656fa1a28f4a95c98aac6928 (patch) | |
tree | 0c355ea3c72ab27b70f9275b7e58b6159f7d5727 /Alc/ringbuffer.h | |
parent | 63a130204c829c5c81631cfa8c579d78048fdb6e (diff) |
Use al::byte instead of char for generic data storage
Diffstat (limited to 'Alc/ringbuffer.h')
-rw-r--r-- | Alc/ringbuffer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/ringbuffer.h b/Alc/ringbuffer.h index 311477c9..6554f95a 100644 --- a/Alc/ringbuffer.h +++ b/Alc/ringbuffer.h @@ -7,6 +7,7 @@ #include <memory> #include <utility> +#include "albyte.h" #include "almalloc.h" @@ -17,7 +18,7 @@ */ struct ll_ringbuffer_data { - char *buf; + al::byte *buf; size_t len; }; using ll_ringbuffer_data_pair = std::pair<ll_ringbuffer_data,ll_ringbuffer_data>; @@ -30,7 +31,7 @@ struct RingBuffer { size_t mSizeMask{0u}; size_t mElemSize{0u}; - alignas(16) char mBuffer[]; + alignas(16) al::byte mBuffer[]; /** Reset the read and write pointers to zero. This is not thread safe. */ void reset() noexcept; |