From 71e6bcbd62ab8685f3da660b0bb391e8285bcbce Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 25 Jan 2021 09:08:49 -0800 Subject: Use an AL-specific buffer queue item struct for sources --- al/source.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'al/source.h') diff --git a/al/source.h b/al/source.h index 028d0bcd..f17395c3 100644 --- a/al/source.h +++ b/al/source.h @@ -21,7 +21,6 @@ struct ALbuffer; struct ALeffectslot; -struct BufferlistItem; namespace al { @@ -35,6 +34,12 @@ using deque = std::deque>; #define INVALID_VOICE_IDX static_cast(-1) +struct ALbufferQueueItem : public VoiceBufferItem { + ALbuffer *mBuffer{nullptr}; + + DISABLE_ALLOC() +}; + struct ALsource { /** Source properties. */ @@ -108,7 +113,7 @@ struct ALsource { ALenum state{AL_INITIAL}; /** Source Buffer Queue head. */ - al::deque mQueue; + al::deque mQueue; std::atomic_flag PropsClean; -- cgit v1.2.3