QTfrontend/SDLs.h
changeset 2191 20c62f787a4d
parent 1701 ad7a7fd14d36
child 2194 1597710c6118
equal deleted inserted replaced
2190:cfcad6142d48 2191:20c62f787a4d
    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 #include "SDL_mixer.h"
    24 //#include "SDL_mixer.h"
    25 
    25 
       
    26 extern	"C" int		openal_init			(int);
       
    27 extern	"C" int		openal_close		(void);
       
    28 extern	"C" int		openal_loadfile		(const char*);
       
    29 extern	"C" int		openal_toggleloop	(int);
       
    30 extern	"C" int		openal_setvolume	(int, unsigned char);
       
    31 extern	"C" int		openal_setglobalvolume	(unsigned char);
       
    32 extern  "C" int		openal_togglemute	(void);
       
    33 extern	"C" int		openal_fadeout		(int, unsigned int);
       
    34 extern	"C" int		openal_fadein		(int, unsigned int);
       
    35 extern	"C" int		openal_playsound 	(int);
       
    36 extern	"C" int		openal_stopsound	(int);
       
    37 extern	"C" int		openal_pausesound	(int);
    26 
    38 
    27 class SDLInteraction : public QObject
    39 class SDLInteraction : public QObject
    28 {
    40 {
    29 	Q_OBJECT
    41 	Q_OBJECT
    30 
    42 
    31 private:
    43 private:
    32 	Mix_Music * music;
    44 	int music;
    33 
    45 
    34 public:
    46 public:
    35 	SDLInteraction();
    47 	SDLInteraction();
    36 	~SDLInteraction();
    48 	~SDLInteraction();
    37 	QStringList getResolutions() const;
    49 	QStringList getResolutions() const;