SDL: testmultiaudio: initialize audio through SDL_test framework

From 434193d153463b44044e51072d9fb6e066d93922 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Mon, 2 Sep 2024 01:46:24 +0200
Subject: [PATCH] testmultiaudio: initialize audio through SDL_test framework

---
 test/testmultiaudio.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/test/testmultiaudio.c b/test/testmultiaudio.c
index 2b60b6c9e7813..b978d00acfc27 100644
--- a/test/testmultiaudio.c
+++ b/test/testmultiaudio.c
@@ -142,7 +142,7 @@ int main(int argc, char **argv)
     SDLTest_CommonState *state;
 
     /* Initialize test framework */
-    state = SDLTest_CommonCreateState(argv, 0);
+    state = SDLTest_CommonCreateState(argv, SDL_INIT_AUDIO);
     if (!state) {
         return 1;
     }
@@ -171,7 +171,7 @@ int main(int argc, char **argv)
     }
 
     /* Load the SDL library */
-    if (!SDL_Init(SDL_INIT_AUDIO)) {
+    if (!SDLTest_CommonInit(state)) {
         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
         return 1;
     }
@@ -197,8 +197,7 @@ int main(int argc, char **argv)
 
     SDL_free(filename);
 
-    SDL_Quit();
-    SDLTest_CommonDestroyState(state);
+    SDLTest_CommonQuit(state);
 
     return 0;
 }