diff options
author | Chris Robinson <[email protected]> | 2009-08-15 09:14:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-08-15 09:14:08 -0700 |
commit | 43067ed2b8d4ab9c3f46b8ee002d6c3f6480cc4f (patch) | |
tree | c83c89f3a37a468f18d8aa533b97ca8027fa96f3 /OpenAL32/Include | |
parent | 4e4c9aef1581fbec81294f20e2466d9d63e26ad8 (diff) |
Store the buffer list in the device
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alBuffer.h | 6 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h index 75e97d18..b25a35c6 100644 --- a/OpenAL32/Include/alBuffer.h +++ b/OpenAL32/Include/alBuffer.h @@ -11,7 +11,7 @@ extern "C" { #define PENDING 1 #define PROCESSED 2 -typedef struct ALbuffer_struct +typedef struct ALbuffer { ALenum format; ALenum eOriginalFormat; @@ -21,12 +21,12 @@ typedef struct ALbuffer_struct ALsizei padding; ALenum state; ALuint refcount; // Number of sources using this buffer (deletion can only occur when this is 0) - struct ALbuffer_struct *next; + struct ALbuffer *next; } ALbuffer; ALvoid ALAPIENTRY alBufferSubDataEXT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length); -ALvoid ReleaseALBuffers(ALvoid); +ALvoid ReleaseALBuffers(ALCdevice *device); #ifdef __cplusplus } diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index e3823364..ccfb94ac 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -189,6 +189,10 @@ struct ALCdevice_struct ALint lNumStereoSources; ALuint NumAuxSends; + // Linked List of Buffers for this device + struct ALbuffer *Buffers; + ALuint BufferCount; + // Context created on this device ALCcontext *Context; |