mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-09 13:03:42 +02:00
Port from git
This commit is contained in:
19
Source/Sound/Sound.h
Normal file
19
Source/Sound/Sound.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/* 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;
|
||||
};
|
||||
Reference in New Issue
Block a user