summaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alBuffer.h
blob: 06ffdea09271fb16293a7c5c5b83342bc2676912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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