From b59b80fb17a2c4bc4e5d581207affd727a34abc7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 3 Apr 2023 04:51:28 -0700 Subject: Hold the buffer sample pointer separate from the vector --- core/buffer_storage.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') 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 mData; + uint mSampleRate{0u}; FmtChannels mChannels{FmtMono}; FmtType mType{FmtShort}; -- cgit v1.2.3