added audio stuff

This commit is contained in:
2026-01-18 19:42:25 +01:00
parent 5fdcb6989f
commit f9185e7b26
13 changed files with 471 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include "Types.hpp"
#include "miniaudio.h"
namespace TSE
{
struct AudioClipDescription
{
public:
string path = "";
byte* audiostream = nullptr;
size_t dataSize = 0;
};
class AudioClip
{
public:
string name = "";
AudioClipDescription description;
AudioClip(string path);
AudioClip(byte* stream, size_t size);
ma_sound* GetAudioSound();
void DestroyAudioSound(ma_sound* sound);
};
} // namespace TSE