[Scummvm-cvs-logs] CVS: scummvm/backends/midi adlib.cpp,1.11,1.12

Nicolas Bacca arisme at users.sourceforge.net
Wed Jan 29 13:29:07 CET 2003


Update of /cvsroot/scummvm/scummvm/backends/midi
In directory sc8-pr-cvs1:/tmp/cvs-serv10355/backends/midi

Modified Files:
	adlib.cpp 
Log Message:
Change AdLib emulation quality for slower devices - added PROP_GET_FMOPL_ENV_BITS and PROP_GET_FMOPL_EG_ENT

Index: adlib.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/adlib.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- adlib.cpp	18 Dec 2002 13:22:40 -0000	1.11
+++ adlib.cpp	29 Jan 2003 21:28:37 -0000	1.12
@@ -737,6 +737,8 @@
 
 	int i;
 	MidiChannelAdl *mc;
+	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);
 
 	for (i = 0, mc = _midi_channels; i != ARRAYSIZE(_midi_channels); i++, mc++) {
 		mc->_channel = i;
@@ -745,6 +747,8 @@
 	}
 
 	_adlib_reg_cache = (byte *)calloc(256, 1);
+
+	OPLBuildTables((env_bits ? env_bits : FMOPL_ENV_BITS_HQ), (eg_ent ? eg_ent : FMOPL_EG_ENT_HQ));
 
 	_opl = OPLCreate(OPL_TYPE_YM3812, 3579545, g_system->property(OSystem::PROP_GET_SAMPLE_RATE, 0));
 





More information about the Scummvm-git-logs mailing list