14 * You should have received a copy of the GNU General Public License |
14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software |
15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
17 */ |
17 */ |
18 |
18 |
19 #include "globals.h" |
19 #ifndef _OALB_INTERFACE_H |
|
20 #define _OALB_INTERFACE_H |
20 |
21 |
21 |
22 |
22 #ifdef __CPLUSPLUS |
23 #ifdef __CPLUSPLUS |
23 extern "C" { |
24 extern "C" { |
24 #endif |
25 #endif |
25 |
26 |
26 #pragma once |
27 int openal_init (int memorysize); |
27 |
28 int openal_close (void); |
28 ALint openal_init (int memorysize); |
29 int openal_loadfile (const char *filename); |
29 ALint openal_close (void); |
30 int openal_toggleloop (int index); |
30 int openal_loadfile (const char *filename); |
31 int openal_setvolume (int index, unsigned char percentage); |
31 ALint openal_toggleloop (int index); |
32 int openal_setglobalvolume (unsigned char percentage); |
32 ALint openal_setvolume (int index, unsigned char percentage); |
33 int openal_togglemute (void); |
33 ALint openal_setglobalvolume (unsigned char percentage); |
34 int openal_fadeout (int index, unsigned int quantity); |
34 ALint openal_togglemute (void); |
35 int openal_fadein (int index, unsigned int quantity); |
35 ALint openal_fadeout (int index, unsigned int quantity); |
36 int openal_fade (int index, unsigned int quantity, char direction); |
36 ALint openal_fadein (int index, unsigned int quantity); |
37 int openal_playsound (int index); |
37 ALint openal_fade (int index, unsigned int quantity, char direction); |
38 int openal_pausesound (int index); |
38 ALint openal_playsound (int index); |
39 int openal_stopsound (int index); |
39 ALint openal_pausesound (int index); |
|
40 ALint openal_stopsound (int index); |
|
41 |
40 |
42 #ifdef __CPLUSPLUS |
41 #ifdef __CPLUSPLUS |
43 } |
42 } |
44 #endif |
43 #endif |
|
44 |
|
45 #endif /*_OALB_INTERFACE_H*/ |