[Scummvm-cvs-logs] CVS: scummvm/backends/midi adlib.cpp,1.33,1.34
Jamieson Christian
jamieson630 at users.sourceforge.net
Fri Jul 11 03:24:10 CEST 2003
Update of /cvsroot/scummvm/scummvm/backends/midi
In directory sc8-pr-cvs1:/tmp/cvs-serv22321/backends/midi
Modified Files:
adlib.cpp
Log Message:
Post FMOPL-reversion cleanup.
Index: adlib.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/adlib.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- adlib.cpp 11 Jul 2003 07:13:55 -0000 1.33
+++ adlib.cpp 11 Jul 2003 10:23:13 -0000 1.34
@@ -849,8 +849,6 @@
_adlib_reg_cache = (byte *)calloc(256, 1);
// We need to emulate one YM3812 chip
-// if (0 != YM3812Init(1, 3579545, g_system->property(OSystem::PROP_GET_SAMPLE_RATE, 0)))
-// error("Error initialising YM3812 sound chip emulation");
int env_bits = g_system->property(OSystem::PROP_GET_FMOPL_ENV_BITS, NULL);
int eg_ent = g_system->property(OSystem::PROP_GET_FMOPL_EG_ENT, NULL);
OPLBuildTables((env_bits ? env_bits : FMOPL_ENV_BITS_HQ), (eg_ent ? eg_ent : FMOPL_EG_ENT_HQ));
@@ -991,8 +989,6 @@
return;
_adlib_reg_cache[port] = value;
-// YM3812Write(0, 0, port);
-// YM3812Write(0, 1, value);
OPLWriteReg (_opl, port, value);
}
@@ -1003,7 +999,6 @@
step = len;
if (step > _next_tick)
step = _next_tick;
-// YM3812UpdateOne(0, data, step);
YM3812UpdateOne (_opl, data, step);
_next_tick -= step;
More information about the Scummvm-git-logs
mailing list