Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
a24814c2
Commit
a24814c2
authored
6 years ago
by
James R.
Browse files
Options
Downloads
Patches
Plain Diff
Add a "-noaudio" parm to cover "-nomusic" and "-nosound"
parent
f0ee9011
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/d_main.c
+19
-7
19 additions, 7 deletions
src/d_main.c
src/s_sound.c
+3
-3
3 additions, 3 deletions
src/s_sound.c
with
22 additions
and
10 deletions
src/d_main.c
+
19
−
7
View file @
a24814c2
...
...
@@ -1248,16 +1248,28 @@ void D_SRB2Main(void)
{
CONS_Printf
(
"S_InitSfxChannels(): Setting up sound channels.
\n
"
);
}
if
(
M_CheckParm
(
"-nosound"
))
if
(
M_CheckParm
(
"-noaudio"
))
// combines -nosound and -nomusic
{
sound_disabled
=
true
;
if
(
M_CheckParm
(
"-nomusic"
))
// combines -nomidimusic and -nodigmusic
midi_disabled
=
digital_disabled
=
true
;
digital_disabled
=
true
;
midi_disabled
=
true
;
}
else
{
if
(
M_CheckParm
(
"-nomidimusic"
))
midi_disabled
=
true
;
// WARNING: DOS version initmusic in I_StartupSound
if
(
M_CheckParm
(
"-nodigmusic"
))
digital_disabled
=
true
;
// WARNING: DOS version initmusic in I_StartupSound
if
(
M_CheckParm
(
"-nosound"
))
sound_disabled
=
true
;
if
(
M_CheckParm
(
"-nomusic"
))
// combines -nomidimusic and -nodigmusic
{
digital_disabled
=
true
;
midi_disabled
=
true
;
}
else
{
if
(
M_CheckParm
(
"-nomidimusic"
))
midi_disabled
=
true
;
// WARNING: DOS version initmusic in I_StartupSound
if
(
M_CheckParm
(
"-nodigmusic"
))
digital_disabled
=
true
;
// WARNING: DOS version initmusic in I_StartupSound
}
}
I_StartupSound
();
I_InitMusic
();
...
...
This diff is collapsed.
Click to expand it.
src/s_sound.c
+
3
−
3
View file @
a24814c2
...
...
@@ -2202,7 +2202,7 @@ static void Command_RestartAudio_f(void)
void
GameSounds_OnChange
(
void
)
{
if
(
M_CheckParm
(
"-nosound"
))
if
(
M_CheckParm
(
"-nosound"
)
||
M_CheckParm
(
"-noaudio"
)
)
return
;
if
(
sound_disabled
)
...
...
@@ -2220,7 +2220,7 @@ void GameSounds_OnChange(void)
void
GameDigiMusic_OnChange
(
void
)
{
if
(
M_CheckParm
(
"-nomusic"
))
if
(
M_CheckParm
(
"-nomusic"
)
||
M_CheckParm
(
"-noaudio"
)
)
return
;
else
if
(
M_CheckParm
(
"-nodigmusic"
))
return
;
...
...
@@ -2262,7 +2262,7 @@ void GameDigiMusic_OnChange(void)
void
GameMIDIMusic_OnChange
(
void
)
{
if
(
M_CheckParm
(
"-nomusic"
))
if
(
M_CheckParm
(
"-nomusic"
)
||
M_CheckParm
(
"-noaudio"
)
)
return
;
else
if
(
M_CheckParm
(
"-nomidimusic"
))
return
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment