foxygit / doom Log in
commit 808b78153c3d3bfe1fb692106323731d17e49489
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sat Sep 26 20:01:58 2009 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sat Sep 26 20:01:58 2009 +0000

    Don't use snd_mport to control OPL base I/O port; Vanilla doesn't do
    this.

    Subversion-branch: /branches/opl-branch
    Subversion-revision: 1691
---
 src/i_oplmusic.c | 4 ++--
 src/m_config.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/i_oplmusic.c b/src/i_oplmusic.c
index 7bfdc04d..dd62076d 100644
--- a/src/i_oplmusic.c
+++ b/src/i_oplmusic.c
@@ -336,7 +336,7 @@ static boolean init_stage_reg_writes = false;
 // Configuration file variable, containing the port number for the
 // adlib chip.

-int snd_mport = 0x388;
+int opl_io_port = 0x388;

 static unsigned int GetStatus(void)
 {
@@ -729,7 +729,7 @@ static void I_OPL_ShutdownMusic(void)

 static boolean I_OPL_InitMusic(void)
 {
-    if (!OPL_Init(snd_mport))
+    if (!OPL_Init(opl_io_port))
     {
         return false;
     }
diff --git a/src/m_config.c b/src/m_config.c
index 0d0faea0..4f789845 100644
--- a/src/m_config.c
+++ b/src/m_config.c
@@ -184,7 +184,6 @@ extern int      vanilla_demo_limit;
 extern int snd_musicdevice;
 extern int snd_sfxdevice;
 extern int snd_samplerate;
-extern int snd_mport;

 // controls whether to use libsamplerate for sample rate conversions

@@ -197,6 +196,7 @@ extern int use_libsamplerate;
 static int snd_sbport = 0;
 static int snd_sbirq = 0;
 static int snd_sbdma = 0;
+static int snd_mport = 0;

 typedef enum
 {