aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-01-25 09:08:49 -0800
committerChris Robinson <[email protected]>2021-01-25 09:08:49 -0800
commit71e6bcbd62ab8685f3da660b0bb391e8285bcbce (patch)
treeff05d8a43f25c3e46717a71bdd9d090842269f5c /al/source.h
parent6151d112538242ff41f5882a728a294ba478c3ab (diff)
Use an AL-specific buffer queue item struct for sources
Diffstat (limited to 'al/source.h')
-rw-r--r--al/source.h9
1 files changed, 7 insertions, 2 deletions
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<T, al::allocator<T>>;
#define INVALID_VOICE_IDX static_cast<ALuint>(-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<BufferlistItem> mQueue;
+ al::deque<ALbufferQueueItem> mQueue;
std::atomic_flag PropsClean;