mixer.c
changeset 762 6c6adcc85536
parent 757 420f3b37dc95
child 765 fca02fccc6ab
equal deleted inserted replaced
761:2c0a45f9a767 762:6c6adcc85536
   148 static int initialized = 0;
   148 static int initialized = 0;
   149 
   149 
   150 int Mix_Init(int flags)
   150 int Mix_Init(int flags)
   151 {
   151 {
   152     int result = 0;
   152     int result = 0;
       
   153 
       
   154 #ifdef MIX_INIT_SOUNDFONT_PATHS
       
   155     if (!soundfont_paths)
       
   156         soundfont_paths = SDL_strdup(MIX_INIT_SOUNDFONT_PATHS);
       
   157 #endif
   153 
   158 
   154     if (flags & MIX_INIT_FLUIDSYNTH) {
   159     if (flags & MIX_INIT_FLUIDSYNTH) {
   155 #ifdef USE_FLUIDSYNTH_MIDI
   160 #ifdef USE_FLUIDSYNTH_MIDI
   156         if ((initialized & MIX_INIT_FLUIDSYNTH) || Mix_InitFluidSynth() == 0) {
   161         if ((initialized & MIX_INIT_FLUIDSYNTH) || Mix_InitFluidSynth() == 0) {
   157             result |= MIX_INIT_FLUIDSYNTH;
   162             result |= MIX_INIT_FLUIDSYNTH;