diff options
author | Simon Howard | 2009-09-26 20:01:58 +0000 |
---|---|---|
committer | Simon Howard | 2009-09-26 20:01:58 +0000 |
commit | 808b78153c3d3bfe1fb692106323731d17e49489 (patch) | |
tree | 832b3786642f3f276b81a24981b70c63da893bfc | |
parent | 6f3d0abb12bcc05336e780414fe84a8f9f25ec26 (diff) | |
download | chocolate-doom-808b78153c3d3bfe1fb692106323731d17e49489.tar.gz chocolate-doom-808b78153c3d3bfe1fb692106323731d17e49489.tar.bz2 chocolate-doom-808b78153c3d3bfe1fb692106323731d17e49489.zip |
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
-rw-r--r-- | src/i_oplmusic.c | 4 | ||||
-rw-r--r-- | 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 { |