aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-01-24 02:07:39 -0800
committerChris Robinson <[email protected]>2021-01-24 02:07:39 -0800
commit13c1d7efb7141aee93d32a60c0e609e61a64f550 (patch)
treec788c53507811f8adb8a33ee668c014f66d9b8fa /al/buffer.h
parent3142fb30eaa451c955a1607b8cffe2069cbd15b2 (diff)
Store buffer info in the queue entry
Diffstat (limited to 'al/buffer.h')
-rw-r--r--al/buffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/al/buffer.h b/al/buffer.h
index 2b3cd517..9f72fb1b 100644
--- a/al/buffer.h
+++ b/al/buffer.h
@@ -41,6 +41,8 @@ enum UserFmtChannels : unsigned char {
struct ALbuffer : public BufferStorage {
ALbitfieldSOFT Access{0u};
+ al::vector<al::byte,16> mData;
+
UserFmtType OriginalType{UserFmtShort};
ALuint OriginalSize{0};
ALuint OriginalAlign{0};
@@ -53,6 +55,9 @@ struct ALbuffer : public BufferStorage {
ALsizei MappedOffset{0};
ALsizei MappedSize{0};
+ ALuint mLoopStart{0u};
+ ALuint mLoopEnd{0u};
+
/* Number of times buffer was attached to a source (deletion can only occur when 0) */
RefCount ref{0u};