From 92fd5a5568512622b3525d287f3a404b54c4b314 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Sat, 13 Apr 2024 23:17:59 -0400 Subject: [PATCH] SDL3: Assume devID is out-of-date on stream creation --- src/FAudio_platform_sdl3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FAudio_platform_sdl3.c b/src/FAudio_platform_sdl3.c index 7c0ee4030..57417f476 100644 --- a/src/FAudio_platform_sdl3.c +++ b/src/FAudio_platform_sdl3.c @@ -226,7 +226,7 @@ void FAudio_PlatformInit( *platformDevice = result; /* Start the thread! */ - SDL_ResumeAudioDevice(devID); + SDL_ResumeAudioDevice(SDL_GetAudioStreamDevice(result->stream)); } void FAudio_PlatformQuit(void* platformDevice)