mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-18 12:48:52 +01:00
20 lines
396 B
C++
20 lines
396 B
C++
/* This file is subject to the terms and conditions defined in
|
|
* file 'LICENSE.txt', which is part of this source code package.
|
|
*/
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <SDL2/SDL_mixer.h>
|
|
class Sound
|
|
{
|
|
public:
|
|
Sound(std::string file);
|
|
virtual ~Sound();
|
|
void Play();
|
|
bool Allocate();
|
|
bool Free();
|
|
private:
|
|
std::string File;
|
|
Mix_Chunk *Chunk;
|
|
};
|