mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Set default number of voices to 256, remove voices option from menu when compiled with SIMPLE_MENU=1
git-svn-id: https://svn.eduke32.com/eduke32@6380 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e229fc607c
commit
9b9b6baecd
2 changed files with 11 additions and 1 deletions
|
@ -184,7 +184,11 @@ void CONFIG_SetDefaults(void)
|
||||||
g_myAimMode = g_player[0].ps->aim_mode = 1;
|
g_myAimMode = g_player[0].ps->aim_mode = 1;
|
||||||
ud.config.NumBits = 16;
|
ud.config.NumBits = 16;
|
||||||
ud.config.NumChannels = 2;
|
ud.config.NumChannels = 2;
|
||||||
|
#if defined GEKKO || defined __OPENDINGUX__
|
||||||
ud.config.NumVoices = 32;
|
ud.config.NumVoices = 32;
|
||||||
|
#else
|
||||||
|
ud.config.NumVoices = 256;
|
||||||
|
#endif
|
||||||
ud.config.ReverseStereo = 0;
|
ud.config.ReverseStereo = 0;
|
||||||
ud.auto_run = 1;
|
ud.auto_run = 1;
|
||||||
ud.config.ShowOpponentWeapons = 0;
|
ud.config.ShowOpponentWeapons = 0;
|
||||||
|
|
|
@ -1085,10 +1085,12 @@ static MenuOptionSet_t MEOS_SOUND_SAMPLINGRATE = MAKE_MENUOPTIONSET( MEOSN_SOUND
|
||||||
static MenuOption_t MEO_SOUND_SAMPLINGRATE = MAKE_MENUOPTION( &MF_Redfont, &MEOS_SOUND_SAMPLINGRATE, &soundrate );
|
static MenuOption_t MEO_SOUND_SAMPLINGRATE = MAKE_MENUOPTION( &MF_Redfont, &MEOS_SOUND_SAMPLINGRATE, &soundrate );
|
||||||
static MenuEntry_t ME_SOUND_SAMPLINGRATE = MAKE_MENUENTRY( "Sample rate:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SOUND_SAMPLINGRATE, Option );
|
static MenuEntry_t ME_SOUND_SAMPLINGRATE = MAKE_MENUENTRY( "Sample rate:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SOUND_SAMPLINGRATE, Option );
|
||||||
|
|
||||||
|
#ifndef EDUKE32_STANDALONE
|
||||||
static MenuRangeInt32_t MEO_SOUND_NUMVOICES = MAKE_MENURANGE( &soundvoices, &MF_Redfont, 16, 256, 0, 16, 1 );
|
static MenuRangeInt32_t MEO_SOUND_NUMVOICES = MAKE_MENURANGE( &soundvoices, &MF_Redfont, 16, 256, 0, 16, 1 );
|
||||||
static MenuEntry_t ME_SOUND_NUMVOICES = MAKE_MENUENTRY( "Voices:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SOUND_NUMVOICES, RangeInt32 );
|
static MenuEntry_t ME_SOUND_NUMVOICES = MAKE_MENUENTRY( "Voices:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SOUND_NUMVOICES, RangeInt32 );
|
||||||
|
#endif
|
||||||
|
|
||||||
static MenuEntry_t ME_SOUND_RESTART = MAKE_MENUENTRY( "Restart sound system", &MF_Redfont, &MEF_BigOptionsRt, &MEO_NULL, Link );
|
static MenuEntry_t ME_SOUND_RESTART = MAKE_MENUENTRY( "Apply Changes", &MF_Redfont, &MEF_BigOptions_Apply, &MEO_NULL, Link );
|
||||||
|
|
||||||
#ifndef EDUKE32_SIMPLE_MENU
|
#ifndef EDUKE32_SIMPLE_MENU
|
||||||
static MenuLink_t MEO_ADVSOUND = { MENU_ADVSOUND, MA_Advance, };
|
static MenuLink_t MEO_ADVSOUND = { MENU_ADVSOUND, MA_Advance, };
|
||||||
|
@ -1110,8 +1112,10 @@ static MenuEntry_t *MEL_SOUND[] = {
|
||||||
static MenuEntry_t *MEL_ADVSOUND[] = {
|
static MenuEntry_t *MEL_ADVSOUND[] = {
|
||||||
&ME_SOUND_SAMPLINGRATE,
|
&ME_SOUND_SAMPLINGRATE,
|
||||||
&ME_Space2_Redfont,
|
&ME_Space2_Redfont,
|
||||||
|
#ifndef EDUKE32_STANDALONE
|
||||||
&ME_SOUND_NUMVOICES,
|
&ME_SOUND_NUMVOICES,
|
||||||
&ME_Space2_Redfont,
|
&ME_Space2_Redfont,
|
||||||
|
#endif
|
||||||
&ME_SOUND_RESTART,
|
&ME_SOUND_RESTART,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1805,7 +1809,9 @@ static void Menu_Pre(MenuID_t cm)
|
||||||
MenuEntry_DisableOnCondition(&ME_SOUND_VOLUME_MUSIC, !ud.config.MusicToggle);
|
MenuEntry_DisableOnCondition(&ME_SOUND_VOLUME_MUSIC, !ud.config.MusicToggle);
|
||||||
MenuEntry_DisableOnCondition(&ME_SOUND_DUKETALK, !ud.config.SoundToggle);
|
MenuEntry_DisableOnCondition(&ME_SOUND_DUKETALK, !ud.config.SoundToggle);
|
||||||
MenuEntry_DisableOnCondition(&ME_SOUND_SAMPLINGRATE, !ud.config.SoundToggle && !ud.config.MusicToggle);
|
MenuEntry_DisableOnCondition(&ME_SOUND_SAMPLINGRATE, !ud.config.SoundToggle && !ud.config.MusicToggle);
|
||||||
|
#ifndef EDUKE32_SIMPLE_MENU
|
||||||
MenuEntry_DisableOnCondition(&ME_SOUND_NUMVOICES, !ud.config.SoundToggle);
|
MenuEntry_DisableOnCondition(&ME_SOUND_NUMVOICES, !ud.config.SoundToggle);
|
||||||
|
#endif
|
||||||
MenuEntry_DisableOnCondition(&ME_SOUND_RESTART, soundrate == ud.config.MixRate &&
|
MenuEntry_DisableOnCondition(&ME_SOUND_RESTART, soundrate == ud.config.MixRate &&
|
||||||
soundvoices == ud.config.NumVoices);
|
soundvoices == ud.config.NumVoices);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue