SDL: emscriptenaudio: Remove unnecessary functions.

From 981b8a337ac3ab8e377531bdb14da29396f52be0 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 23 Aug 2023 11:12:18 -0400
Subject: [PATCH] emscriptenaudio: Remove unnecessary functions.

---
 src/audio/emscripten/SDL_emscriptenaudio.c | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/src/audio/emscripten/SDL_emscriptenaudio.c b/src/audio/emscripten/SDL_emscriptenaudio.c
index 142d9e56637c..4fc6448438ea 100644
--- a/src/audio/emscripten/SDL_emscriptenaudio.c
+++ b/src/audio/emscripten/SDL_emscriptenaudio.c
@@ -55,11 +55,6 @@ static void EMSCRIPTENAUDIO_PlayDevice(SDL_AudioDevice *device, const Uint8 *buf
     }, buffer, buffer_size / framelen);
 }
 
-static void HandleAudioProcess(SDL_AudioDevice *device)  // this fires when the main thread is idle.
-{
-    SDL_OutputAudioThreadIterate(device);
-}
-
 
 static void EMSCRIPTENAUDIO_FlushCapture(SDL_AudioDevice *device)
 {
@@ -92,11 +87,6 @@ static int EMSCRIPTENAUDIO_CaptureFromDevice(SDL_AudioDevice *device, void *buff
     return buflen;
 }
 
-static void HandleCaptureProcess(SDL_AudioDevice *device)  // this fires when the main thread is idle.
-{
-    SDL_CaptureAudioThreadIterate(device);
-}
-
 static void EMSCRIPTENAUDIO_CloseDevice(SDL_AudioDevice *device)
 {
     if (!device->hidden) {
@@ -262,7 +252,7 @@ static int EMSCRIPTENAUDIO_OpenDevice(SDL_AudioDevice *device)
             } else if (navigator.webkitGetUserMedia !== undefined) {
                 navigator.webkitGetUserMedia({ audio: true, video: false }, have_microphone, no_microphone);
             }
-        }, device->spec.channels, device->sample_frames, HandleCaptureProcess, device);
+        }, device->spec.channels, device->sample_frames, SDL_CaptureAudioThreadIterate, device);
     } else {
         // setup a ScriptProcessorNode
         MAIN_THREAD_EM_ASM({
@@ -274,7 +264,7 @@ static int EMSCRIPTENAUDIO_OpenDevice(SDL_AudioDevice *device)
                 dynCall('vi', $2, [$3]);
             };
             SDL3.audio.scriptProcessorNode['connect'](SDL3.audioContext['destination']);
-        }, device->spec.channels, device->sample_frames, HandleAudioProcess, device);
+        }, device->spec.channels, device->sample_frames, SDL_OutputAudioThreadIterate, device);
     }
 
     return 0;