From 2cc9baafc7bf9ae524a61e9f8250883500a9820a Mon Sep 17 00:00:00 2001 From: Tyler Glaiel Date: Fri, 5 Jul 2024 13:48:03 -0700 Subject: [PATCH] Update FAudio_platform_sdl3.c fixed up some SDL 3 renamed symbols --- src/FAudio_platform_sdl3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/FAudio_platform_sdl3.c b/src/FAudio_platform_sdl3.c index 3dc5b8b86..38521cc21 100644 --- a/src/FAudio_platform_sdl3.c +++ b/src/FAudio_platform_sdl3.c @@ -186,12 +186,12 @@ void FAudio_PlatformInit( if (deviceIndex == 0) { - devID = SDL_AUDIO_DEVICE_DEFAULT_OUTPUT; + devID = SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK; } else { int devcount; - SDL_AudioDeviceID *devs = SDL_GetAudioOutputDevices(&devcount); + SDL_AudioDeviceID *devs = SDL_GetAudioPlaybackDevices(&devcount); /* Bounds checking is done before this function is called */ devID = devs[deviceIndex - 1]; @@ -241,7 +241,7 @@ void FAudio_PlatformQuit(void* platformDevice) uint32_t FAudio_PlatformGetDeviceCount() { int devcount; - SDL_free(SDL_GetAudioOutputDevices(&devcount)); + SDL_free(SDL_GetAudioPlaybackDevices(&devcount)); if (devcount == 0) { return 0; @@ -264,7 +264,7 @@ uint32_t FAudio_PlatformGetDeviceDetails( FAudio_zero(details, sizeof(FAudioDeviceDetails)); - devs = SDL_GetAudioOutputDevices(&devcount); + devs = SDL_GetAudioPlaybackDevices(&devcount); if (index > devcount) { SDL_free(devs); @@ -324,7 +324,7 @@ uint32_t FAudio_PlatformGetDeviceDetails( /* Get the device format from the OS */ if (index == 0) { - if (SDL_GetAudioDeviceFormat(SDL_AUDIO_DEVICE_DEFAULT_OUTPUT, &spec, NULL) < 0) + if (SDL_GetAudioDeviceFormat(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, &spec, NULL) < 0) { SDL_zero(spec); }