QTfrontend/SDLs.h
changeset 2216 82e7da49c26a
parent 2210 1cb7118a77dd
child 2260 31756e21c436
equal deleted inserted replaced
2215:1d78579e06c2 2216:82e7da49c26a
    19 #ifndef SDLS_H
    19 #ifndef SDLS_H
    20 #define SDLS_H
    20 #define SDLS_H
    21 
    21 
    22 #include <QStringList>
    22 #include <QStringList>
    23 
    23 
    24 extern "C" int openal_init		(int memorysize);
    24 extern "C" int openal_init		(unsigned int memorysize);
    25 extern "C" int openal_close		(void);
    25 extern "C" int openal_close		(void);
       
    26 extern "C" int openal_ready		(void);
    26 extern "C" int openal_loadfile		(const char *filename);
    27 extern "C" int openal_loadfile		(const char *filename);
    27 extern "C" int openal_toggleloop	(int index);
    28 extern "C" int openal_toggleloop	(unsigned int index);
    28 extern "C" int openal_setvolume		(int index, unsigned char percentage);
    29 extern "C" int openal_setvolume		(unsigned int index, unsigned char percentage);
    29 extern "C" int openal_setglobalvolume	(unsigned char percentage);
    30 extern "C" int openal_setglobalvolume	(unsigned char percentage);
    30 extern "C" int openal_togglemute	(void);
    31 extern "C" int openal_togglemute	(void);
    31 extern "C" int openal_fadeout		(int index, unsigned int quantity);
    32 extern "C" int openal_fadeout		(unsigned int index, unsigned short int quantity);
    32 extern "C" int openal_fadein		(int index, unsigned int quantity);
    33 extern "C" int openal_fadein		(unsigned int index, unsigned short int quantity);
    33 extern "C" int openal_playsound 	(int index);
    34 extern "C" int openal_fade		(unsigned int index, unsigned short int quantity, unsigned char direction);
    34 extern "C" int openal_stopsound		(int index);
    35 extern "C" int openal_playsound 	(unsigned int index);
    35 extern "C" int openal_pausesound	(int index);
    36 extern "C" int openal_stopsound		(unsigned int index);
       
    37 extern "C" int openal_pausesound	(unsigned int index);
    36 
    38 
    37 class SDLInteraction : public QObject
    39 class SDLInteraction : public QObject
    38 {
    40 {
    39 	Q_OBJECT
    41 	Q_OBJECT
    40 
    42