mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
- small adjustments
This commit is contained in:
parent
8730ce552b
commit
9648c026a9
4 changed files with 4 additions and 3 deletions
|
@ -1835,7 +1835,7 @@ void SetSound(CGameMenuItemChain *pItem)
|
||||||
UNREFERENCED_PARAMETER(pItem);
|
UNREFERENCED_PARAMETER(pItem);
|
||||||
snd_mixrate = nSoundRateValues[itemOptionsSoundSampleRate.m_nFocus];
|
snd_mixrate = nSoundRateValues[itemOptionsSoundSampleRate.m_nFocus];
|
||||||
snd_numvoices = itemOptionsSoundNumVoices.nValue;
|
snd_numvoices = itemOptionsSoundNumVoices.nValue;
|
||||||
MusicDevice = nMusicDeviceValues[itemOptionsSoundMusicDevice.m_nFocus];
|
mus_device = nMusicDeviceValues[itemOptionsSoundMusicDevice.m_nFocus];
|
||||||
sfxTerm();
|
sfxTerm();
|
||||||
sndTerm();
|
sndTerm();
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ CUSTOM_CVARD(Int, mus_volume, 255, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "controls mus
|
||||||
if (self > 255) self = 255;
|
if (self > 255) self = 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
int MusicDevice;
|
int MusicDevice = 1;
|
||||||
CUSTOM_CVARD(Int, mus_device, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "selects music device")
|
CUSTOM_CVARD(Int, mus_device, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "selects music device")
|
||||||
{
|
{
|
||||||
if (self < 0) self = 0;
|
if (self < 0) self = 0;
|
||||||
|
|
|
@ -48,6 +48,7 @@ EXTERN_CVAR(Int, snd_numchannels)
|
||||||
EXTERN_CVAR(Int, snd_numvoices)
|
EXTERN_CVAR(Int, snd_numvoices)
|
||||||
EXTERN_CVAR(Int, snd_speech)
|
EXTERN_CVAR(Int, snd_speech)
|
||||||
EXTERN_CVAR(Int, mus_volume)
|
EXTERN_CVAR(Int, mus_volume)
|
||||||
|
EXTERN_CVAR(Int, mus_device)
|
||||||
extern int MusicDevice;
|
extern int MusicDevice;
|
||||||
|
|
||||||
EXTERN_CVAR(Int, hud_layout)
|
EXTERN_CVAR(Int, hud_layout)
|
||||||
|
|
|
@ -3237,7 +3237,7 @@ static void Menu_EntryLinkActivate(MenuEntry_t *entry)
|
||||||
{
|
{
|
||||||
snd_mixrate = soundrate;
|
snd_mixrate = soundrate;
|
||||||
snd_numvoices = soundvoices;
|
snd_numvoices = soundvoices;
|
||||||
MusicDevice = musicdevice;
|
mus_device = musicdevice;
|
||||||
|
|
||||||
S_SoundShutdown();
|
S_SoundShutdown();
|
||||||
S_MusicShutdown();
|
S_MusicShutdown();
|
||||||
|
|
Loading…
Reference in a new issue