add sound-system SDL_mixer

This commit is contained in:
doitux
2007-05-29 12:22:05 +00:00
parent 7c147dccc6
commit bc63661d96
6 changed files with 75 additions and 2 deletions
+15
View File
@@ -30,6 +30,9 @@
#include <QtGui>
#include <QtCore>
#include "SDL/SDL.h"
#include "SDL/SDL_mixer.h"
class Log;
class Chat;
class ConfigFile;
@@ -250,6 +253,11 @@ public slots:
void localGameModification();
void networkGameModification();
//SOUND TESTING
void playSound();
void musicDone();
private:
boost::shared_ptr<GuiInterface> myServerGuiInterface;
@@ -379,6 +387,13 @@ private:
// statistic testing
int statisticArray[15];
//sound testing
int audio_rate;
Uint16 audio_format;
int audio_channels;
int audio_buffers;
Mix_Music *music;
friend class GuiWrapper;
};