This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
space-war/include/tinyengine/audio.hpp

29 lines
430 B
C++
Raw Normal View History

#pragma once
#include "pch.hpp"
#include "tool.hpp"
#include "log.hpp"
#include "libmath.hpp"
class Audio final {
public:
static void Init();
static void Shutdown();
};
class Sound final {
public:
Sound(const std::string& filename);
~Sound();
void Play();
void Pause();
void Stop();
void SetVolume(float volume);
void EnableLoop();
void DisableLoop();
private:
ma_sound sound_;
};