diff options
author | Chris Robinson <[email protected]> | 2023-04-03 04:51:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-04-03 04:51:28 -0700 |
commit | b59b80fb17a2c4bc4e5d581207affd727a34abc7 (patch) | |
tree | 9bae342157be80f34dd78e8668473d524e661131 /core/buffer_storage.h | |
parent | dfd8f11551e43470708c5b7ddf766abab4d5ac30 (diff) |
Hold the buffer sample pointer separate from the vector
Diffstat (limited to 'core/buffer_storage.h')
-rw-r--r-- | core/buffer_storage.h | 3 |
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}; |