--- SDL_mixer-1.2.8/timidity/config.h.alt 2007-07-02 06:03:51 +0400 +++ SDL_mixer-1.2.8/timidity/config.h 2008-11-10 20:57:14 +0300 @@ -167,16 +167,10 @@ typedef char int8; #define MAX_AMPLIFICATION 800 -/* You could specify a complete path, e.g. "/etc/timidity.cfg", and - then specify the library directory in the configuration file. */ -#define CONFIG_FILE "timidity.cfg" -#define CONFIG_FILE_ETC "/etc/timidity.cfg" -#define CONFIG_FILE_ETC_TIMIDITY "/etc/timidity/timidity.cfg" - #if defined(__WIN32__) || defined(__OS2__) #define DEFAULT_PATH "\\TIMIDITY" #else -#define DEFAULT_PATH "/usr/local/lib/timidity" +#define DEFAULT_PATH "/usr/share/timidity" #endif /* These affect general volume */ --- SDL_mixer-1.2.8/timidity/timidity.c.alt 2007-07-02 06:03:52 +0400 +++ SDL_mixer-1.2.8/timidity/timidity.c 2008-11-10 20:56:21 +0300 @@ -294,12 +294,13 @@ static int read_config_file(char *name) int Timidity_Init(int rate, int format, int channels, int samples) { - if (read_config_file(CONFIG_FILE)<0) { - if (read_config_file(CONFIG_FILE_ETC)<0) { - if (read_config_file(CONFIG_FILE_ETC_TIMIDITY)<0) { - return(-1); - } - } + char cfgfile[PATH_MAX]; + + strcpy(cfgfile, DEFAULT_PATH); + strcat(cfgfile, "/midia.cfg"); + + if (read_config_file(cfgfile) < 0) { + return(-1); } if (channels < 1 || channels == 3 || channels == 5 || channels > 6) return(-1);