commit cfc03154b78622e7e5adf5980d3065b8a9d7c546
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Tue Dec 30 09:06:12 2025 -0700
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Tue Dec 30 09:06:12 2025 -0700
Reduce large audio sample counts to reduce audio lag
---
platform/SDL2Common/source/sdl2basehost.cpp | 2 +-
platform/wiiu/source/WiiUHost.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/platform/SDL2Common/source/sdl2basehost.cpp b/platform/SDL2Common/source/sdl2basehost.cpp
index 44fb7f8..6fa57b2 100644
--- a/platform/SDL2Common/source/sdl2basehost.cpp
+++ b/platform/SDL2Common/source/sdl2basehost.cpp
@@ -95,7 +95,7 @@ void audioSetup(){
want.freq = SAMPLERATE;
want.format = AUDIO_S16;
want.channels = 2;
- want.samples = 4096;
+ want.samples = 512; // Lower buffer size for reduced audio latency (~23ms vs ~186ms)
want.callback = FillAudioDeviceBuffer;
diff --git a/platform/wiiu/source/WiiUHost.cpp b/platform/wiiu/source/WiiUHost.cpp
index 294ea6b..842ede5 100644
--- a/platform/wiiu/source/WiiUHost.cpp
+++ b/platform/wiiu/source/WiiUHost.cpp
@@ -113,7 +113,7 @@ void audioSetup(){
want.freq = SAMPLERATE;
want.format = AUDIO_S16SYS;
want.channels = 2;
- want.samples = 4096;
+ want.samples = 512;
want.callback = FillAudioDeviceBuffer;