diff options
author | Simon Howard | 2007-12-13 22:26:16 +0000 |
---|---|---|
committer | Simon Howard | 2007-12-13 22:26:16 +0000 |
commit | 21a82fa12400568b67b378048a822f73f6d32a81 (patch) | |
tree | 00bbcbc767be4919c647decb2e429960710c06cb /src/s_sound.c | |
parent | 5df59601283df3d3c3889a350086f4bb0dce248c (diff) | |
download | chocolate-doom-21a82fa12400568b67b378048a822f73f6d32a81.tar.gz chocolate-doom-21a82fa12400568b67b378048a822f73f6d32a81.tar.bz2 chocolate-doom-21a82fa12400568b67b378048a822f73f6d32a81.zip |
Add @vanilla tag for Vanilla doom command line options. Add missing
documentation for -nosound, -nomusic, -nosfx. Fix up some bugs with the
docgen wikitext output and allow control over output of Vanilla options.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 984
Diffstat (limited to 'src/s_sound.c')
-rw-r--r-- | src/s_sound.c | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/s_sound.c b/src/s_sound.c index 57066ad4..cc071bde 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -241,18 +241,43 @@ static void InitMusicModule(void) void S_Init(int sfxVolume, int musicVolume) { + boolean nosound, nosfx, nomusic; int i; + //! + // @vanilla + // + // Disable all sound output. + // + + nosound = M_CheckParm("-nosound") > 0; + + //! + // @vanilla + // + // Disable sound effects. + // + + nosfx = M_CheckParm("-nosfx") > 0; + + //! + // @vanilla + // + // Disable music. + // + + nomusic = M_CheckParm("-nomusic") > 0; + // Initialise the sound and music subsystems. - if (M_CheckParm("-nosound") <= 0 && !screensaver_mode) + if (!nosound && !screensaver_mode) { - if (M_CheckParm("-nosfx") <= 0) + if (!nosfx) { InitSfxModule(); } - if (M_CheckParm("-nomusic") <= 0) + if (!nomusic) { InitMusicModule(); } |