mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
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:
parent
51e93808b3
commit
730017ce61
11 changed files with 96445 additions and 133 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue