This commit is contained in:
doitux
2007-06-02 23:04:49 +00:00
parent 2022e794ae
commit 35196f0732
2 changed files with 0 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
//
// C++ Interface: sdlplayer
//
// Description:
//
//
// Author: FThauer FHammer <webmaster@pokerth.net>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef SDLPLAYER_H
#define SDLPLAYER_H
#ifdef _WIN32
#include <SDL.h>
#include <SDL_mixer.h>
#else
#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>
#endif
#include <string>
/**
@author FThauer FHammer <webmaster@pokerth.net>
*/
class SDLPlayer{
public:
SDLPlayer();
~SDLPlayer();
void initAudio();
void playSound(std::string);
void audioDone();
void closeAudio();
private:
int audio_rate;
Uint16 audio_format;
int audio_channels;
int audio_buffers;
Mix_Music *music;
};
#endif