Add miniaudio and stb as dependencies

This commit is contained in:
Liriosha
2026-03-19 16:15:20 -04:00
parent c63491ab81
commit 901f7f9cb1
11 changed files with 45 additions and 96549 deletions

View File

@@ -15,11 +15,25 @@
#endif
#ifdef __linux__
#define STB_VORBIS_HEADER_ONLY
#include "./stb_vorbis.h"
#include "stb_vorbis.c"
// Fixes strcasecmp in miniaudio
// https://stackoverflow.com/questions/31127260/strcasecmp-a-non-standard-function
int strcasecmp(const char *a, const char *b) {
int ca, cb;
do {
ca = * (unsigned char *)a;
cb = * (unsigned char *)b;
ca = tolower(toupper(ca));
cb = tolower(toupper(cb));
a++;
b++;
} while (ca == cb && ca != '\0');
return ca - cb;
}
#define MINIAUDIO_IMPLEMENTATION
#include "./miniaudio.h"
#include "miniaudio.h"
#undef STB_VORBIS_HEADER_ONLY
#include "./stb_vorbis.h"
#include "stb_vorbis.c"
#endif
#ifdef _WINDOWS64
#include "../../Minecraft.Client/Platform/Windows64/Windows64_App.h"