mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-23 18:46:31 +00:00
Update to use SDL_GetFirstAudioFormat() and SDL_GetNextAudioFormat()
This commit is contained in:
committed by
Ryan C. Gordon
parent
4b17cc3a46
commit
b026f588d6
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user