aboutsummaryrefslogtreecommitdiffstats
path: root/core/buffer_storage.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-04-03 04:51:28 -0700
committerChris Robinson <[email protected]>2023-04-03 04:51:28 -0700
commitb59b80fb17a2c4bc4e5d581207affd727a34abc7 (patch)
tree9bae342157be80f34dd78e8668473d524e661131 /core/buffer_storage.h
parentdfd8f11551e43470708c5b7ddf766abab4d5ac30 (diff)
Hold the buffer sample pointer separate from the vector
Diffstat (limited to 'core/buffer_storage.h')
-rw-r--r--core/buffer_storage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/buffer_storage.h b/core/buffer_storage.h
index d1941a48..282d5b53 100644
--- a/core/buffer_storage.h
+++ b/core/buffer_storage.h
@@ -5,6 +5,7 @@
#include "albyte.h"
#include "alnumeric.h"
+#include "alspan.h"
#include "ambidefs.h"
@@ -84,6 +85,8 @@ struct BufferStorage {
CallbackType mCallback{nullptr};
void *mUserData{nullptr};
+ al::span<al::byte> mData;
+
uint mSampleRate{0u};
FmtChannels mChannels{FmtMono};
FmtType mType{FmtShort};