Files
pokerth/src/gui/qt/sound/sdlplayer.h
T

50 lines
694 B
C++
Raw Normal View History

2007-06-01 21:34:27 +00:00
//
// 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
2007-06-01 21:34:27 +00:00
#include <string>
2007-06-01 21:34:27 +00:00
/**
@author FThauer FHammer <webmaster@pokerth.net>
*/
class SDLPlayer{
public:
SDLPlayer();
2007-06-01 21:34:27 +00:00
~SDLPlayer();
2007-06-01 21:34:27 +00:00
void initAudio();
void playSound(std::string);
void audioDone();
void closeAudio();
private:
int audio_rate;
Uint16 audio_format;
int audio_channels;
int audio_buffers;
2007-06-01 21:34:27 +00:00
Mix_Music *music;
};
#endif