- cleaned i_music.h off external dependencies.

* take I_BuildMIDIMenuList out of it
* pass the command line state to disable music from the init call.
* don't declare internal 'nomusic' variable in the header.
This commit is contained in:
Christoph Oelckers 2023-06-17 09:49:15 +02:00
commit 4538236a38
5 changed files with 10 additions and 16 deletions

View file

@ -66,6 +66,7 @@
#include "g_game.h"
#include "s_music.h"
#include "v_draw.h"
#include "m_argv.h"
// PUBLIC DATA DEFINITIONS -------------------------------------------------
@ -229,7 +230,7 @@ void S_Init()
}
I_InitSound();
I_InitMusic();
I_InitMusic(Args->CheckParm("-nomusic") || Args->CheckParm("-nosound"));
// Heretic and Hexen have sound curve lookup tables. Doom does not.
int curvelump = fileSystem.CheckNumForName("SNDCURVE");