]> git.jsancho.org Git - lugaru.git/blob - Dependencies/OpenAL/include/AL/alut.h
a6fbc171588ec8037ef1daca180a4eded8ab3939
[lugaru.git] / Dependencies / OpenAL / include / AL / alut.h
1 #ifndef _ALUT_H_
2 #define _ALUT_H_
3
4 #include "altypes.h"
5 #include "aluttypes.h"
6
7 #ifdef _WIN32
8 #define ALAPI         __declspec(dllexport)
9 #define ALAPIENTRY    __cdecl
10 #define AL_CALLBACK
11 #else  /* _WIN32 */
12
13 #ifdef TARGET_OS_MAC
14 #if TARGET_OS_MAC
15 #pragma export on
16 #endif /* TARGET_OS_MAC */
17 #endif /* TARGET_OS_MAC */
18
19 #ifndef ALAPI
20 #define ALAPI
21 #endif
22
23 #ifndef ALAPIENTRY
24 #define ALAPIENTRY
25 #endif
26
27 #ifndef AL_CALLBACK
28 #define AL_CALLBACK
29 #endif 
30
31 #endif /* _WIN32 */
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 #ifndef AL_NO_PROTOTYPES
38
39 ALAPI void ALAPIENTRY alutInit(ALint *argc, ALbyte **argv);
40 ALAPI void ALAPIENTRY alutExit(ALvoid);
41
42 ALAPI ALboolean ALAPIENTRY alutLoadWAV( const char *fname,
43                         ALvoid **wave,
44                         ALsizei *format,
45                         ALsizei *size,
46                         ALsizei *bits,
47                         ALsizei *freq );
48
49 ALAPI void ALAPIENTRY alutLoadWAVFile(ALbyte *file,
50                                       ALenum *format,
51                                       ALvoid **data,
52                                       ALsizei *size,
53                                       ALsizei *freq,
54                                       ALboolean *loop);
55 ALAPI void ALAPIENTRY alutLoadWAVMemory(ALbyte *memory,
56                                         ALenum *format,
57                                         ALvoid **data,
58                                         ALsizei *size,
59                                         ALsizei *freq,
60                                         ALboolean *loop);
61 ALAPI void ALAPIENTRY alutUnloadWAV(ALenum format,
62                                     ALvoid *data,
63                                     ALsizei size,
64                                     ALsizei freq);
65
66 #else
67       void      (*alutInit)(int *argc, char *argv[]);
68       void      (*alutExit)(ALvoid);
69
70       ALboolean         (*alutLoadWAV)( const char *fname,
71                         ALvoid **wave,
72                         ALsizei *format,
73                         ALsizei *size,
74                         ALsizei *bits,
75                         ALsizei *freq );
76
77       void (*alutLoadWAVFile(ALbyte *file,ALenum *format,ALvoid **data,ALsizei *size,ALsizei *freq,ALboolean *loop);
78       void (*alutLoadWAVMemory)(ALbyte *memory,ALenum *format,ALvoid **data,ALsizei *size,ALsizei *freq,ALboolean *loop);
79       void (*alutUnloadWAV)(ALenum format,ALvoid *data,ALsizei size,ALsizei freq);
80
81
82 #endif /* AL_NO_PROTOTYPES */
83
84 #ifdef TARGET_OS_MAC
85 #if TARGET_OS_MAC
86 #pragma export off
87 #endif /* TARGET_OS_MAC */
88 #endif /* TARGET_OS_MAC */
89
90 #ifdef __cplusplus
91 }
92 #endif
93
94 #endif