mixer.c
branchSDL-1.2
changeset 1081 119300487b73
parent 943 b57842dc6349
child 1136 33a3817d1066
     1.1 --- a/mixer.c	Sat Dec 14 18:12:10 2019 +0300
     1.2 +++ b/mixer.c	Sat Dec 14 18:14:10 2019 +0300
     1.3 @@ -107,9 +107,7 @@
     1.4  static int num_decoders = 0;
     1.5  
     1.6  /* Semicolon-separated SoundFont paths */
     1.7 -#ifdef MID_MUSIC
     1.8  extern char* soundfont_paths;
     1.9 -#endif
    1.10  
    1.11  int Mix_GetNumChunkDecoders(void)
    1.12  {
    1.13 @@ -148,6 +146,11 @@
    1.14  {
    1.15  	int result = 0;
    1.16  
    1.17 +#ifdef MIX_INIT_SOUNDFONT_PATHS
    1.18 +	if (!soundfont_paths)
    1.19 +		soundfont_paths = SDL_strdup(MIX_INIT_SOUNDFONT_PATHS);
    1.20 +#endif
    1.21 +
    1.22  	if (flags & MIX_INIT_FLUIDSYNTH) {
    1.23  #ifdef USE_FLUIDSYNTH_MIDI
    1.24  		if ((initialized & MIX_INIT_FLUIDSYNTH) || Mix_InitFluidSynth() == 0) {
    1.25 @@ -227,12 +230,10 @@
    1.26  		Mix_QuitOgg();
    1.27  	}
    1.28  #endif
    1.29 -#ifdef MID_MUSIC
    1.30  	if (soundfont_paths) {
    1.31  		SDL_free(soundfont_paths);
    1.32  		soundfont_paths=NULL;
    1.33  	}
    1.34 -#endif
    1.35  	initialized = 0;
    1.36  }
    1.37