repo.or.cz
/
openal-soft.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Check for GCC's destructor attribute before using it
[openal-soft.git]
/
OpenAL32
/
Include
/
alBuffer.h
blob
06ffdea09271fb16293a7c5c5b83342bc2676912
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