mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 13:21:31 +00:00
Merge branch 'dedicated-nosoundinit' into 'master'
Don't init the sound system on dedicated servers See merge request STJr/SRB2!225
This commit is contained in:
commit
8e5ac64d7c
2 changed files with 10 additions and 11 deletions
12
src/d_main.c
12
src/d_main.c
|
@ -1223,8 +1223,16 @@ void D_SRB2Main(void)
|
||||||
CONS_Printf("R_Init(): Init SRB2 refresh daemon.\n");
|
CONS_Printf("R_Init(): Init SRB2 refresh daemon.\n");
|
||||||
R_Init();
|
R_Init();
|
||||||
|
|
||||||
// setting up sound
|
// setting up sound
|
||||||
CONS_Printf("S_Init(): Setting up sound.\n");
|
if (dedicated)
|
||||||
|
{
|
||||||
|
nosound = true;
|
||||||
|
nomidimusic = nodigimusic = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CONS_Printf("S_Init(): Setting up sound.\n");
|
||||||
|
}
|
||||||
if (M_CheckParm("-nosound"))
|
if (M_CheckParm("-nosound"))
|
||||||
nosound = true;
|
nosound = true;
|
||||||
if (M_CheckParm("-nomusic")) // combines -nomidimusic and -nodigmusic
|
if (M_CheckParm("-nomusic")) // combines -nomidimusic and -nodigmusic
|
||||||
|
|
|
@ -1180,12 +1180,6 @@ void I_StartupSound(void)
|
||||||
audio.callback = I_UpdateStream;
|
audio.callback = I_UpdateStream;
|
||||||
audio.userdata = &localdata;
|
audio.userdata = &localdata;
|
||||||
|
|
||||||
if (dedicated)
|
|
||||||
{
|
|
||||||
nosound = nomidimusic = nodigimusic = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Configure sound device
|
// Configure sound device
|
||||||
CONS_Printf("I_StartupSound:\n");
|
CONS_Printf("I_StartupSound:\n");
|
||||||
|
|
||||||
|
@ -1481,9 +1475,6 @@ void I_InitMusic(void)
|
||||||
I_AddExitFunc(I_ShutdownGMEMusic);
|
I_AddExitFunc(I_ShutdownGMEMusic);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((nomidimusic && nodigimusic) || dedicated)
|
|
||||||
return;
|
|
||||||
|
|
||||||
#ifdef HAVE_MIXER
|
#ifdef HAVE_MIXER
|
||||||
MIX_VERSION(&MIXcompiled)
|
MIX_VERSION(&MIXcompiled)
|
||||||
MIXlinked = Mix_Linked_Version();
|
MIXlinked = Mix_Linked_Version();
|
||||||
|
|
Loading…
Reference in a new issue