diff options
author | Chris Robinson <[email protected]> | 2007-11-13 18:02:18 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-11-13 18:02:18 -0800 |
commit | ae5f4e9a742b07e004b330c04a72fac4457c9b58 (patch) | |
tree | d1d5c9fadd918d9346fb871033f60e8c91600a63 /OpenAL32/Include/alBuffer.h |
Initial import
Diffstat (limited to 'OpenAL32/Include/alBuffer.h')
-rw-r--r-- | OpenAL32/Include/alBuffer.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h new file mode 100644 index 00000000..06ffdea0 --- /dev/null +++ b/OpenAL32/Include/alBuffer.h @@ -0,0 +1,32 @@ +#ifndef _AL_BUFFER_H_ +#define _AL_BUFFER_H_ + +#include "AL/al.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define UNUSED 0 +#define PENDING 1 +#define PROCESSED 2 + +typedef struct ALbuffer_struct +{ + ALenum format; + ALenum eOriginalFormat; + ALshort *data; + ALsizei size; + ALsizei frequency; + ALenum state; + ALuint refcount; // Number of sources using this buffer (deletion can only occur when this is 0) + struct ALbuffer_struct *next; +} ALbuffer; + +ALvoid ReleaseALBuffers(ALvoid); + +#ifdef __cplusplus +} +#endif + +#endif |