mixer.c
changeset 766 1e215d1f9492
parent 765 fca02fccc6ab
child 771 fa081ec2940e
equal deleted inserted replaced
765:fca02fccc6ab 766:1e215d1f9492
   108 /* rcg06042009 report available decoders at runtime. */
   108 /* rcg06042009 report available decoders at runtime. */
   109 static const char **chunk_decoders = NULL;
   109 static const char **chunk_decoders = NULL;
   110 static int num_decoders = 0;
   110 static int num_decoders = 0;
   111 
   111 
   112 /* Semicolon-separated SoundFont paths */
   112 /* Semicolon-separated SoundFont paths */
   113 #ifdef MID_MUSIC
       
   114 extern char* soundfont_paths;
   113 extern char* soundfont_paths;
   115 #endif
       
   116 
   114 
   117 int Mix_GetNumChunkDecoders(void)
   115 int Mix_GetNumChunkDecoders(void)
   118 {
   116 {
   119     return(num_decoders);
   117     return(num_decoders);
   120 }
   118 }
   247 #ifdef OGG_MUSIC
   245 #ifdef OGG_MUSIC
   248     if (initialized & MIX_INIT_OGG) {
   246     if (initialized & MIX_INIT_OGG) {
   249         Mix_QuitOgg();
   247         Mix_QuitOgg();
   250     }
   248     }
   251 #endif
   249 #endif
   252 #ifdef MID_MUSIC
       
   253     if (soundfont_paths) {
   250     if (soundfont_paths) {
   254         SDL_free(soundfont_paths);
   251         SDL_free(soundfont_paths);
   255         soundfont_paths = NULL;
   252         soundfont_paths = NULL;
   256     }
   253     }
   257 #endif
       
   258     initialized = 0;
   254     initialized = 0;
   259 }
   255 }
   260 
   256 
   261 static int _Mix_remove_all_effects(int channel, effect_info **e);
   257 static int _Mix_remove_all_effects(int channel, effect_info **e);
   262 
   258