Add initial AL_EXTX_buffer_sub_data support
[openal-soft.git] / OpenAL32 / Include / alBuffer.h
blob75e97d180b459d122f0100b0efcc14d813ff7e6b
1 #ifndef _AL_BUFFER_H_
2 #define _AL_BUFFER_H_
4 #include "AL/al.h"
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
10 #define UNUSED 0
11 #define PENDING 1
12 #define PROCESSED 2
14 typedef struct ALbuffer_struct
16 ALenum format;
17 ALenum eOriginalFormat;
18 ALshort *data;
19 ALsizei size;
20 ALsizei frequency;
21 ALsizei padding;
22 ALenum state;
23 ALuint refcount; // Number of sources using this buffer (deletion can only occur when this is 0)
24 struct ALbuffer_struct *next;
25 } ALbuffer;
27 ALvoid ALAPIENTRY alBufferSubDataEXT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length);
29 ALvoid ReleaseALBuffers(ALvoid);
31 #ifdef __cplusplus
33 #endif
35 #endif