diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-31 14:19:21 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-31 14:19:21 +0100 |
| commit | 757c8e3f8f66cb7bbd354df61477bac1a5bf4eac (patch) | |
| tree | b4ff799703a844fa23c0e7845e4bfb860e4915a0 /src | |
| parent | e4aadd83ffe0d0ff33d8ca058c192decbb25974b (diff) | |
opt: Disable unused audio formats (FLAC, WAV, MP3) and encoding in miniaudio
Reduces Windows binary size from 461KB to 356KB (UPX packed) by stripping unused decoders and encoders from the runtime build. Tools (spectool) retain WAV/MP3 support.
Diffstat (limited to 'src')
| -rw-r--r-- | src/audio/audio.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/audio/audio.cc b/src/audio/audio.cc index 7f8511b..61b6ff7 100644 --- a/src/audio/audio.cc +++ b/src/audio/audio.cc @@ -3,6 +3,13 @@ // Implementation uses miniaudio for cross-platform support. #include "audio.h" + +#define MA_NO_FLAC +#define MA_NO_ENCODING +#ifndef DEMO_BUILD_TOOLS +#define MA_NO_MP3 +#define MA_NO_WAV +#endif #define MINIAUDIO_IMPLEMENTATION #include "miniaudio.h" #include "synth.h" |
