From 0d69dd3820189937cc623b9ed30fffc60c5f787e Mon Sep 17 00:00:00 2001 From: NyakoFox Date: Thu, 30 Apr 2026 17:55:32 -0300 Subject: [PATCH] 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. --- desktop_version/src/Music.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Music.cpp b/desktop_version/src/Music.cpp index 559080b1..b16dfc51 100644 --- a/desktop_version/src/Music.cpp +++ b/desktop_version/src/Music.cpp @@ -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;