diff options
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; |