mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-02 18:07:40 +00:00
Update to use SDL_GetFirstAudioFormat() and SDL_GetNextAudioFormat()
This commit is contained in:
parent
4b17cc3a46
commit
b026f588d6
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue