Fix audio buffer issues on some platforms

On certain ports of the game, and possibly some Linux distros, the
game's audio would crackle, or slow down with loud buzzing. This commit
attempts to fix that, by enabling `FAUDIO_1024_QUANTUM`, which should
increase the internal FAudio buffer size.
This commit is contained in:
NyakoFox authored and Ethan Lee committed 2026-04-30 17:06:30 -04:00
1 parent 4e6697352c
commit 0d69dd3820
1 file changed
+1 -1
+1 -1
View File
@@ -745,7 +745,7 @@ static void add_builtin_sound(const char* id)
void musicclass::init(void)
{
if (FAudioCreate(&faudioctx, 0, FAUDIO_DEFAULT_PROCESSOR))
if (FAudioCreate(&faudioctx, FAUDIO_1024_QUANTUM, FAUDIO_DEFAULT_PROCESSOR))
{
vlog_error("Unable to initialize FAudio");
return;