audio: Simplified GetFirstAudioFormat/GetNextAudioFormat.
Now it just returns an iterable array and needs no global state.
This commit is contained in:
parent
b6ca360228
commit
e191bc8491
17 changed files with 80 additions and 125 deletions
|
@ -35,9 +35,8 @@
|
|||
|
||||
/* Functions and variables exported from SDL_audio.c for SDL_sysaudio.c */
|
||||
|
||||
/* Functions to get a list of "close" audio formats */
|
||||
extern SDL_AudioFormat SDL_GetFirstAudioFormat(SDL_AudioFormat format);
|
||||
extern SDL_AudioFormat SDL_GetNextAudioFormat(void);
|
||||
/* Function to get a list of audio formats, ordered most similar to `format` to least, 0-terminated. Don't free results. */
|
||||
const SDL_AudioFormat *SDL_ClosestAudioFormats(SDL_AudioFormat format);
|
||||
|
||||
/* Function to calculate the size and silence for a SDL_AudioSpec */
|
||||
extern Uint8 SDL_GetSilenceValueForFormat(const SDL_AudioFormat format);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue