mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +00:00
27 lines
318 B
C
27 lines
318 B
C
|
#ifndef _SOUND_H_
|
||
|
#define _SOUND_H_
|
||
|
|
||
|
#include <string>
|
||
|
#include "SDL_mixer.h"
|
||
|
|
||
|
class Sound
|
||
|
{
|
||
|
public:
|
||
|
Sound(std::string path = "");
|
||
|
~Sound();
|
||
|
|
||
|
void init();
|
||
|
void deinit();
|
||
|
|
||
|
void loadFile(std::string path);
|
||
|
|
||
|
void play();
|
||
|
bool isPlaying();
|
||
|
private:
|
||
|
std::string mPath;
|
||
|
int mChannel;
|
||
|
Mix_Chunk* mSound;
|
||
|
};
|
||
|
|
||
|
#endif
|