Store the buffer's original data size and block alignment
[openal-soft/android/lowlatency.git] / OpenAL32 / Include / alBuffer.h
blob81721de236cebe902c9a7ceffae2bcdc3d396dc7
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 BUFFER_PADDING 2
12 typedef struct ALbuffer
14 ALfloat *data;
15 ALsizei size;
17 ALenum format;
18 ALenum eOriginalFormat;
19 ALsizei frequency;
21 ALsizei OriginalSize;
22 ALsizei OriginalAlign;
24 ALuint refcount; // Number of sources using this buffer (deletion can only occur when this is 0)
26 // Index to itself
27 ALuint buffer;
28 } ALbuffer;
30 ALvoid ReleaseALBuffers(ALCdevice *device);
32 #ifdef __cplusplus
34 #endif
36 #endif