settings.c
changeset 1584 7122e759d56c
parent 1500 a66721629bc0
child 1602 79f98b4b83fc
equal deleted inserted replaced
1583:7617a49e78e8 1584:7122e759d56c
   714 
   714 
   715 //***************************
   715 //***************************
   716 // TTD specific INI stuff
   716 // TTD specific INI stuff
   717 //***************************
   717 //***************************
   718 
   718 
       
   719 #ifndef EXTERNAL_PLAYER
       
   720 #define EXTERNAL_PLAYER "timidity"
       
   721 #endif
       
   722 
   719 static const SettingDesc music_settings[] = {
   723 static const SettingDesc music_settings[] = {
   720 	{"playlist",	SDT_UINT8,	(void*)0,			&msf.playlist, NULL},
   724 	{"playlist",	SDT_UINT8,	(void*)0,			&msf.playlist, NULL},
   721 	{"music_vol", SDT_UINT8,	(void*)128,		&msf.music_vol, NULL},
   725 	{"music_vol", SDT_UINT8,	(void*)128,		&msf.music_vol, NULL},
   722 	{"effect_vol",SDT_UINT8,	(void*)128,		&msf.effect_vol, NULL},
   726 	{"effect_vol",SDT_UINT8,	(void*)128,		&msf.effect_vol, NULL},
   723 	{"custom_1",	SDT_INTLIST | SDT_UINT8 | lengthof(msf.custom_1) << 16, NULL, &msf.custom_1, NULL},
   727 	{"custom_1",	SDT_INTLIST | SDT_UINT8 | lengthof(msf.custom_1) << 16, NULL, &msf.custom_1, NULL},
   724 	{"custom_2",	SDT_INTLIST | SDT_UINT8 | lengthof(msf.custom_2) << 16, NULL, &msf.custom_2, NULL},
   728 	{"custom_2",	SDT_INTLIST | SDT_UINT8 | lengthof(msf.custom_2) << 16, NULL, &msf.custom_2, NULL},
   725 	{"playing",		SDT_BOOL,		(void*)true,	&msf.btn_down, NULL},
   729 	{"playing",		SDT_BOOL,		(void*)true,	&msf.btn_down, NULL},
   726 	{"shuffle",		SDT_BOOL,		(void*)false, &msf.shuffle, NULL},
   730 	{"shuffle",		SDT_BOOL,		(void*)false, &msf.shuffle, NULL},
       
   731 	{"extmidi",   SDT_STRINGBUF | (lengthof(msf.extmidi)<<16), EXTERNAL_PLAYER, &msf.extmidi, NULL},
   727 	{NULL,				0,					NULL,					NULL,																NULL}
   732 	{NULL,				0,					NULL,					NULL,																NULL}
   728 };
   733 };
   729 
   734 
   730 static const SettingDesc win32_settings[] = {
   735 static const SettingDesc win32_settings[] = {
   731 	{"display_hz",				SDT_UINT, (void*)0,			&_display_hz,					NULL},
   736 	{"display_hz",				SDT_UINT, (void*)0,			&_display_hz,					NULL},