From 5314d92ec6d4f5987fe442a73d30aff747fc667c Mon Sep 17 00:00:00 2001 From: Dominic Szablewski Date: Tue, 15 Aug 2023 19:32:47 +0200 Subject: [PATCH] [Sokol] Lower audio buffer size to prevent audio lag. --- src/platform_sokol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_sokol.c b/src/platform_sokol.c index cccd51b..89b3a89 100644 --- a/src/platform_sokol.c +++ b/src/platform_sokol.c @@ -237,7 +237,7 @@ sapp_desc sokol_main(int argc, char* argv[]) { saudio_setup(&(saudio_desc){ .sample_rate = 44100, - .buffer_frames = 4096, + .buffer_frames = 1024, .num_packets = 256, .num_channels = 2, .stream_cb = platform_audio_callback,