summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/doom/d_main.c2
-rw-r--r--src/doom/s_sound.c3
-rw-r--r--src/heretic/d_main.c5
-rw-r--r--src/heretic/s_sound.c1
-rw-r--r--src/hexen/h2_main.c2
-rw-r--r--src/hexen/s_sound.c2
-rw-r--r--src/strife/d_main.c4
-rw-r--r--src/strife/s_sound.c3
8 files changed, 11 insertions, 11 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index 5f7e2051..b2566176 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1470,6 +1470,8 @@ void D_DoomMain (void)
I_CheckIsScreensaver();
I_InitTimer();
I_InitJoystick();
+ I_InitSound(true);
+ I_InitMusic();
#ifdef FEATURE_MULTIPLAYER
printf ("NET_Init: Init network subsystem.\n");
diff --git a/src/doom/s_sound.c b/src/doom/s_sound.c
index 12a55d8f..7b000e94 100644
--- a/src/doom/s_sound.c
+++ b/src/doom/s_sound.c
@@ -122,9 +122,6 @@ void S_Init(int sfxVolume, int musicVolume)
{
int i;
- I_InitSound(true);
- I_InitMusic();
-
I_PrecacheSounds(S_sfx, NUMSFX);
S_SetSfxVolume(sfxVolume);
diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c
index 6af7dda1..178db2eb 100644
--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -1037,12 +1037,15 @@ void D_DoomMain(void)
testcontrols = true;
}
+ I_InitTimer();
+ I_InitSound(false);
+ I_InitMusic();
+
#ifdef FEATURE_MULTIPLAYER
tprintf("NET_Init: Init network subsystem.\n", 1);
NET_Init ();
#endif
- I_InitTimer();
D_ConnectNetGame();
// haleyjd: removed WATCOMC
diff --git a/src/heretic/s_sound.c b/src/heretic/s_sound.c
index 755206b4..79e2d353 100644
--- a/src/heretic/s_sound.c
+++ b/src/heretic/s_sound.c
@@ -523,7 +523,6 @@ void S_UpdateSounds(mobj_t * listener)
void S_Init(void)
{
soundCurve = Z_Malloc(MAX_SND_DIST, PU_STATIC, NULL);
- I_InitSound(false);
if (snd_Channels > 8)
{
snd_Channels = 8;
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c
index 07244417..0afdff24 100644
--- a/src/hexen/h2_main.c
+++ b/src/hexen/h2_main.c
@@ -325,6 +325,8 @@ void D_DoomMain(void)
I_CheckIsScreensaver();
I_InitTimer();
I_InitJoystick();
+ I_InitSound(false);
+ I_InitMusic();
#ifdef FEATURE_MULTIPLAYER
ST_Message("NET_Init: Init networking subsystem.\n");
diff --git a/src/hexen/s_sound.c b/src/hexen/s_sound.c
index f6509d1c..3f1a1e76 100644
--- a/src/hexen/s_sound.c
+++ b/src/hexen/s_sound.c
@@ -796,8 +796,6 @@ void S_Init(void)
SoundCurve = W_CacheLumpName("SNDCURVE", PU_STATIC);
// SoundCurve = Z_Malloc(MAX_SND_DIST, PU_STATIC, NULL);
- I_InitSound(false);
-
if (snd_Channels > 8)
{
snd_Channels = 8;
diff --git a/src/strife/d_main.c b/src/strife/d_main.c
index 855dae7d..7cd2387f 100644
--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -1640,8 +1640,10 @@ void D_DoomMain (void)
savegamedir = M_GetSaveGameDir("strife1.wad");
// fraggle 20130405: I_InitTimer is needed here for the netgame
- // startup.
+ // startup. Start low-level sound init here too.
I_InitTimer();
+ I_InitSound(true);
+ I_InitMusic();
#ifdef FEATURE_MULTIPLAYER
if(devparm) // [STRIFE]
diff --git a/src/strife/s_sound.c b/src/strife/s_sound.c
index ec59f3a6..513ab62d 100644
--- a/src/strife/s_sound.c
+++ b/src/strife/s_sound.c
@@ -144,9 +144,6 @@ void S_Init(int sfxVolume, int musicVolume, int voiceVolume)
{
int i;
- I_InitSound(true);
- I_InitMusic();
-
I_PrecacheSounds(S_sfx, NUMSFX);
S_SetSfxVolume(sfxVolume);