Replace process-spawning audio with miniaudio for non-blocking playback

Eliminates severe stuttering from fork/exec + disk I/O by streaming audio directly from memory using miniaudio library.
This commit is contained in:
Kelsi 2026-02-09 00:40:50 -08:00
parent 51e93808b3
commit 730017ce61
11 changed files with 96445 additions and 133 deletions

View file

@ -1,8 +1,6 @@
#pragma once
#include "platform/process.hpp"
#include <string>
#include <vector>
namespace wowee {
namespace pipeline { class AssetManager; }
@ -30,13 +28,9 @@ public:
const std::string& getCurrentTrack() const { return currentTrack; }
private:
void stopCurrentProcess();
pipeline::AssetManager* assetManager = nullptr;
std::string currentTrack;
bool currentTrackIsFile = false;
std::string tempFilePath;
ProcessHandle playerPid = INVALID_PROCESS;
bool playing = false;
int volumePercent = 30;