diff options
author | Chris Robinson <[email protected]> | 2009-10-22 08:53:59 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-10-22 08:53:59 -0700 |
commit | 8d807add41a1be8601b9d9a34052c4af450f103c (patch) | |
tree | 41770fc9b2829f46f5cfc2f8aabc21db12a995bc /OpenAL32/Include/alBuffer.h | |
parent | 8501fce38b2e8b9f4b3d4c9381ed48be6bef1524 (diff) |
Store the bufferID in the buffer struct
Diffstat (limited to 'OpenAL32/Include/alBuffer.h')
-rw-r--r-- | OpenAL32/Include/alBuffer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h index b25a35c6..b7d36642 100644 --- a/OpenAL32/Include/alBuffer.h +++ b/OpenAL32/Include/alBuffer.h @@ -15,12 +15,19 @@ typedef struct ALbuffer { ALenum format; ALenum eOriginalFormat; + ALshort *data; ALsizei size; + ALsizei frequency; ALsizei padding; ALenum state; + ALuint refcount; // Number of sources using this buffer (deletion can only occur when this is 0) + + // Index to itself + ALuint buffer; + struct ALbuffer *next; } ALbuffer; |