[Scummvm-cvs-logs] CVS: scummvm/backends/midi adlib.cpp,1.54,1.55
Max Horn
fingolfin at users.sourceforge.net
Tue Feb 24 14:55:19 CET 2004
Update of /cvsroot/scummvm/scummvm/backends/midi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12241/backends/midi
Modified Files:
adlib.cpp
Log Message:
the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again
Index: adlib.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/adlib.cpp,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- adlib.cpp 6 Jan 2004 12:45:27 -0000 1.54
+++ adlib.cpp 24 Feb 2004 22:39:36 -0000 1.55
@@ -852,11 +852,7 @@
_adlib_reg_cache = (byte *)calloc(256, 1);
- // We need to emulate one YM3812 chip
- 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));
- _opl = OPLCreate(OPL_TYPE_YM3812, 3579545, _mixer->getOutputRate());
+ _opl = makeAdlibOPL(_mixer->getOutputRate());
adlib_write(1, 0x20);
adlib_write(8, 0x40);
More information about the Scummvm-git-logs
mailing list