Check for GCC's destructor attribute before using it
[openal-soft.git] / OpenAL32 / Include / alBuffer.h
blob06ffdea09271fb16293a7c5c5b83342bc2676912
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 ALenum state;
22 ALuint refcount; // Number of sources using this buffer (deletion can only occur when this is 0)
23 struct ALbuffer_struct *next;
24 } ALbuffer;
26 ALvoid ReleaseALBuffers(ALvoid);
28 #ifdef __cplusplus
30 #endif
32 #endif