From b83f789343e7d2cc2df10d1c54e9b9fb01d5be87 Mon Sep 17 00:00:00 2001 From: BearOso Date: Fri, 13 Dec 2024 20:06:07 -0600 Subject: [PATCH] sdl3/audio: Don't double the buffer size requested. --- common/audio/s9x_sound_driver_sdl3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/audio/s9x_sound_driver_sdl3.cpp b/common/audio/s9x_sound_driver_sdl3.cpp index 4bb6eff2..c5cdfaa2 100644 --- a/common/audio/s9x_sound_driver_sdl3.cpp +++ b/common/audio/s9x_sound_driver_sdl3.cpp @@ -102,7 +102,7 @@ bool S9xSDL3SoundDriver::open_device(int playback_rate, int buffer_size) if (buffer_size < 32) buffer_size = 32; - buffer.resize(buffer_size * 4 * audiospec.freq / 1000); + buffer.resize(buffer_size * 2 * audiospec.freq / 1000); return true; }