From 81cb076bfa183ebe291338fc3a65e3c602b1925f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 14 Oct 2017 01:49:37 -0700 Subject: [PATCH] The soundfont API functions are public and should always be available. This fixes bugs 3071 and 3088 --- mixer.c | 4 ---- music.c | 6 ------ 2 files changed, 10 deletions(-) diff --git a/mixer.c b/mixer.c index e8826480..383834a5 100644 --- a/mixer.c +++ b/mixer.c @@ -110,9 +110,7 @@ static const char **chunk_decoders = NULL; static int num_decoders = 0; /* Semicolon-separated SoundFont paths */ -#ifdef MID_MUSIC extern char* soundfont_paths; -#endif int Mix_GetNumChunkDecoders(void) { @@ -249,12 +247,10 @@ void Mix_Quit() Mix_QuitOgg(); } #endif -#ifdef MID_MUSIC if (soundfont_paths) { SDL_free(soundfont_paths); soundfont_paths = NULL; } -#endif initialized = 0; } diff --git a/music.c b/music.c index 2d8ddddd..5f581c90 100644 --- a/music.c +++ b/music.c @@ -151,9 +151,7 @@ static const char **music_decoders = NULL; static int num_decoders = 0; /* Semicolon-separated SoundFont paths */ -#ifdef MID_MUSIC char* soundfont_paths = NULL; -#endif int Mix_GetNumMusicDecoders(void) { @@ -1601,7 +1599,6 @@ void close_music(void) int Mix_SetSoundFonts(const char *paths) { -#ifdef MID_MUSIC if (soundfont_paths) { SDL_free(soundfont_paths); soundfont_paths = NULL; @@ -1613,11 +1610,9 @@ int Mix_SetSoundFonts(const char *paths) return 0; } } -#endif return 1; } -#ifdef MID_MUSIC const char* Mix_GetSoundFonts(void) { const char* force = getenv("SDL_FORCE_SOUNDFONTS"); @@ -1665,4 +1660,3 @@ int Mix_EachSoundFont(int (*function)(const char*, void*), void *data) else return 0; } -#endif