Added Engine and Sound with basic controls

This commit is contained in:
2025-09-03 19:56:33 +03:00
parent e211345f89
commit c13d09268f
2 changed files with 33 additions and 4 deletions

View File

@@ -1 +1,33 @@
int placeHolder();
#include "../lib/miniaudio/miniaudio.c"
#include "../lib/miniaudio/miniaudio.h"
#include <string>
namespace ChargeAudio {
class Sound {
public:
~Sound();
void Play();
void Pause();
void Reset();
void SetVolume(float value);
float GetVolume();
private:
Sound();
class Engine *baseEngine;
ma_sound maSound;
friend class Engine;
};
class Engine {
public:
Engine();
Sound CreateSound(std::string filepath);
void SetVolume(float value);
float GetVolume();
private:
ma_engine maEngine;
ma_result maResponse;
};
} // namespace ChargeAudio