2
0
Эх сурвалжийг харах

Update to use SDL_GetFirstAudioFormat() and SDL_GetNextAudioFormat()

Elad Lahav 2 жил өмнө
parent
commit
b026f588d6

+ 2 - 2
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();
         }
     }