From b026f588d6e9a2fb41beb1495d52677d2657ef73 Mon Sep 17 00:00:00 2001
From: Elad Lahav <[EMAIL REDACTED]>
Date: Sat, 7 Jan 2023 21:35:46 -0500
Subject: [PATCH] Update to use SDL_GetFirstAudioFormat() and
SDL_GetNextAudioFormat()
---
src/audio/qnx/SDL_qsa_audio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/audio/qnx/SDL_qsa_audio.c b/src/audio/qnx/SDL_qsa_audio.c
index d94ba4877e5a..cd11fdebb957 100644
--- a/src/audio/qnx/SDL_qsa_audio.c
+++ b/src/audio/qnx/SDL_qsa_audio.c
@@ -316,7 +316,7 @@ QSA_OpenDevice(_THIS, const char *devname)
/* can't use format as SND_PCM_SFMT_U8 = 0 in qsa */
found = 0;
- for (test_format = SDL_FirstAudioFormat(this->spec.format); !found;) {
+ for (test_format = SDL_GetFirstAudioFormat(this->spec.format); !found;) {
/* if match found set format to equivalent QSA format */
switch (test_format) {
case AUDIO_U8:
@@ -386,7 +386,7 @@ QSA_OpenDevice(_THIS, const char *devname)
}
if (!found) {
- test_format = SDL_NextAudioFormat();
+ test_format = SDL_GetNextAudioFormat();
}
}