17 */ |
17 */ |
18 |
18 |
19 #ifndef _OALB_INTERFACE_H |
19 #ifndef _OALB_INTERFACE_H |
20 #define _OALB_INTERFACE_H |
20 #define _OALB_INTERFACE_H |
21 |
21 |
22 #include "common.h" |
22 #include "globals.h" |
23 #include "wrappers.h" |
23 #include "wrappers.h" |
|
24 #include "alc.h" |
24 #include "loaders.h" |
25 #include "loaders.h" |
25 #include "alc.h" |
|
26 |
26 |
27 |
27 |
28 #ifdef __cplusplus |
28 #ifdef __CPLUSPLUS |
29 extern "C" { |
29 extern "C" { |
30 #endif |
30 #endif |
31 |
31 |
32 const char oalb_init (const char* programname, const char usehardware); |
32 ALboolean openal_init (char* programname, ALboolean usehardware, unsigned int memorysize); |
33 void oalb_close (void); |
33 ALboolean openal_close (void); |
34 char oalb_ready (void); |
34 ALboolean openal_ready (void); |
35 const int32_t oalb_loadfile (const char* cFilename); |
35 ALint openal_loadfile (const char *filename); |
36 void oalb_playsound (const uint32_t iIndex, const char bLoop); |
36 ALboolean openal_toggleloop (unsigned int index); |
37 void oalb_pausesound (const uint32_t iIndex); |
|
38 void oalb_stopsound (const uint32_t iIndex); |
|
39 void oalb_setvolume (const uint32_t iIndex, const char cPercentage); |
|
40 void oalb_setglobalvolume (const char cPercentage); |
|
41 void oalb_togglemute (void); |
|
42 void oalb_fade (uint32_t iIndex, uint16_t quantity, ALboolean direction); |
|
43 void oalb_fadein (uint32_t iIndex, uint16_t quantity); |
|
44 void oalb_fadeout (uint32_t iIndex, uint16_t quantity); |
|
45 |
|
46 /* |
|
47 ALboolean openal_setposition (unsigned int index, float x, float y, float z); |
37 ALboolean openal_setposition (unsigned int index, float x, float y, float z); |
48 */ |
38 ALboolean openal_setvolume (unsigned int index, unsigned char percentage); |
|
39 ALboolean openal_setglobalvolume (unsigned char percentage); |
|
40 ALboolean openal_togglemute (void); |
|
41 ALboolean openal_fadeout (unsigned int index, unsigned short int quantity); |
|
42 ALboolean openal_fadein (unsigned int index, unsigned short int quantity); |
|
43 ALboolean openal_fade (unsigned int index, unsigned short int quantity, ALboolean direction); |
|
44 ALboolean openal_playsound (unsigned int index); |
|
45 ALboolean openal_pausesound (unsigned int index); |
|
46 ALboolean openal_stopsound (unsigned int index); |
49 |
47 |
50 #ifdef __cplusplus |
48 #ifdef __CPLUSPLUS |
51 } |
49 } |
52 #endif |
50 #endif |
53 |
51 |
54 #endif /*_OALB_INTERFACE_H*/ |
52 #endif /*_OALB_INTERFACE_H*/ |