SDL: Lowered SDL_GetAudioStreamData to 32 KB

From 71ad52d6dbf5f974acbeaf4417c37f885b4f8e77 Mon Sep 17 00:00:00 2001
From: Brick <[EMAIL REDACTED]>
Date: Wed, 23 Aug 2023 15:22:01 +0100
Subject: [PATCH] Lowered SDL_GetAudioStreamData to 32 KB No particular reason
 for this number, but 1 MB was a bit silly

---
 src/audio/SDL_audiocvt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c
index c93957f8ecab..ef5091c89a23 100644
--- a/src/audio/SDL_audiocvt.c
+++ b/src/audio/SDL_audiocvt.c
@@ -1037,7 +1037,7 @@ int SDL_GetAudioStreamData(SDL_AudioStream *stream, void *voidbuf, int len)
 
     int retval = 0;
     while (len > 0) { // didn't ask for a whole sample frame, nothing to do
-        const int chunk_size = 1024 * 1024;  // !!! FIXME: a megabyte might be overly-aggressive.
+        const int chunk_size = 32 * 1024;
         const int rc = GetAudioStreamDataInternal(stream, buf, SDL_min(len, chunk_size));
 
         if (rc == -1) {