Fixed bug 3662 - Error message when using the audio conversion setup without an initialized audio subsystem is a bit vague

Simon Hug

This issue actually raises the question if this API change (requirement of initialized audio subsystem) is breaking backwards compatibility. I don't see the documentation saying it is needed in 2.0.5.
This commit is contained in:
Sam Lantinga
2017-08-28 21:42:39 -07:00
parent b128e8802d
commit d619d88560
4 changed files with 13 additions and 16 deletions

View File

@@ -874,8 +874,6 @@ SDL_GetAudioDriver(int index)
return NULL;
}
extern void SDL_ChooseAudioConverters(void);
int
SDL_AudioInit(const char *driver_name)
{
@@ -890,8 +888,6 @@ SDL_AudioInit(const char *driver_name)
SDL_zero(current_audio);
SDL_zero(open_devices);
SDL_ChooseAudioConverters();
/* Select the proper audio driver */
if (driver_name == NULL) {
driver_name = SDL_getenv("SDL_AUDIODRIVER");