From 0b6255551ef84cfff8272956bbc83efe5e4e309d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 21 Jul 2023 11:02:52 -0400 Subject: [PATCH] test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. --- src/test/SDL_test_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c index ec0b988272..05ae8d1baf 100644 --- a/src/test/SDL_test_common.c +++ b/src/test/SDL_test_common.c @@ -1444,7 +1444,7 @@ SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state) } const SDL_AudioSpec spec = { state->audio_format, state->audio_channels, state->audio_freq }; - state->audio_id = SDL_OpenAudioDevice(0, &spec); + state->audio_id = SDL_OpenAudioDevice(SDL_AUDIO_DEVICE_DEFAULT_OUTPUT, &spec); if (!state->audio_id) { SDL_Log("Couldn't open audio: %s\n", SDL_GetError()); return SDL_FALSE;