From 0367f1af19c2ae7d88c3bf485b9da67ef391a6a6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 3 Jul 2024 02:47:10 -0400 Subject: [PATCH] loopwave: Use SDL_ResumeAudioStreamDevice. ...instead of the more-wordy: `SDL_ResumeAudioDevice(SDL_GetAudioStreamDevice(stream));` --- test/loopwave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/loopwave.c b/test/loopwave.c index 27b6532e04..9cd24fae9e 100644 --- a/test/loopwave.c +++ b/test/loopwave.c @@ -114,7 +114,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[]) SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create audio stream: %s\n", SDL_GetError()); return SDL_APP_FAILURE; } - SDL_ResumeAudioDevice(SDL_GetAudioStreamDevice(stream)); + SDL_ResumeAudioStreamDevice(stream); return SDL_APP_CONTINUE; }