diff options
author | Simon Howard | 2009-09-13 00:15:24 +0000 |
---|---|---|
committer | Simon Howard | 2009-09-13 00:15:24 +0000 |
commit | 7e2eaa105e270586e81c04fdf61bcafd7c96a34c (patch) | |
tree | ab40c7e549d055ea01db1519c81f8901e25875b9 /src | |
parent | 2b40842eeca7386f6bfe9b1b39760c8a4d69ca71 (diff) | |
download | chocolate-doom-7e2eaa105e270586e81c04fdf61bcafd7c96a34c.tar.gz chocolate-doom-7e2eaa105e270586e81c04fdf61bcafd7c96a34c.tar.bz2 chocolate-doom-7e2eaa105e270586e81c04fdf61bcafd7c96a34c.zip |
Change intro/introa fix to be more accurate: Doom uses d_intro, but
transforms this to d_introa when using OPL playback (thanks entryway)
Subversion-branch: /branches/opl-branch
Subversion-revision: 1672
Diffstat (limited to 'src')
-rw-r--r-- | src/d_main.c | 2 | ||||
-rw-r--r-- | src/s_sound.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/d_main.c b/src/d_main.c index 46dd19ac..c59a8fb7 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -521,7 +521,7 @@ void D_DoAdvanceDemo (void) if ( gamemode == commercial ) S_StartMusic(mus_dm2ttl); else - S_StartMusic (mus_introa); + S_StartMusic (mus_intro); break; case 1: G_DeferedPlayDemo(DEH_String("demo1")); diff --git a/src/s_sound.c b/src/s_sound.c index f038e9cd..9e70ec73 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -804,6 +804,15 @@ void S_ChangeMusic(int musicnum, int looping) char namebuf[9]; void *handle; + // The Doom IWAD file has two versions of the intro music: d_intro + // and d_introa. The latter is used for OPL playback. + + if (musicnum == mus_intro && (snd_musicdevice == SNDDEVICE_ADLIB + || snd_musicdevice == SNDDEVICE_SB)) + { + musicnum = mus_introa; + } + if (musicnum <= mus_None || musicnum >= NUMMUSIC) { I_Error("Bad music number %d", musicnum); |