SDL: testaudio: the test framework opens an audio device at startup; close it.

From 1022fd6e0474b035438742c082e3c1b5723ac563 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 8 Aug 2023 21:41:37 -0400
Subject: [PATCH] testaudio: the test framework opens an audio device at
 startup; close it.

Not opening a device at all would be more desirable, though.
---
 test/testaudio.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/testaudio.c b/test/testaudio.c
index 7087ca211173..f74014865e2b 100644
--- a/test/testaudio.c
+++ b/test/testaudio.c
@@ -1036,6 +1036,11 @@ int main(int argc, char *argv[])
         Quit(2);
     }
 
+    if (state->audio_id) {
+        SDL_CloseAudioDevice(state->audio_id);
+        state->audio_id = 0;
+    }
+
     SetDefaultTitleBar();
 
     physdev_texture = CreateTexture("physaudiodev.bmp");