Mercurial > fife-parpg
comparison ext/openal-soft/OpenAL32/Include/alBuffer.h @ 0:4a0efb7baf70
* Datasets becomes the new trunk and retires after that :-)
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 29 Jun 2008 18:44:17 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4a0efb7baf70 |
---|---|
1 #ifndef _AL_BUFFER_H_ | |
2 #define _AL_BUFFER_H_ | |
3 | |
4 #include "AL/al.h" | |
5 | |
6 #ifdef __cplusplus | |
7 extern "C" { | |
8 #endif | |
9 | |
10 #define UNUSED 0 | |
11 #define PENDING 1 | |
12 #define PROCESSED 2 | |
13 | |
14 typedef struct ALbuffer_struct | |
15 { | |
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; | |
25 | |
26 ALvoid ReleaseALBuffers(ALvoid); | |
27 | |
28 #ifdef __cplusplus | |
29 } | |
30 #endif | |
31 | |
32 #endif |