[Scummvm-cvs-logs] CVS: scummvm/sound fmopl.cpp,1.24,1.24.2.1 fmopl.h,1.13,1.13.2.1

Nicolas Bacca arisme at users.sourceforge.net
Fri Jan 28 14:36:38 CET 2005


Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4885

Modified Files:
      Tag: branch-0-7-0
	fmopl.cpp fmopl.h 
Log Message:
Add medium quality sound for FOTAQ

Index: fmopl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/fmopl.cpp,v
retrieving revision 1.24
retrieving revision 1.24.2.1
diff -u -d -r1.24 -r1.24.2.1
--- fmopl.cpp	22 Oct 2004 12:11:24 -0000	1.24
+++ fmopl.cpp	28 Jan 2005 19:35:52 -0000	1.24.2.1
@@ -1143,6 +1143,11 @@
 		env_bits = FMOPL_ENV_BITS_HQ;
 		eg_ent = FMOPL_EG_ENT_HQ;
 	}
+	else
+	if (ConfMan.hasKey("FM_medium_quality") && ConfMan.getBool("FM_medium_quality")) {
+		env_bits = FMOPL_ENV_BITS_MQ;
+		eg_ent = FMOPL_EG_ENT_MQ;
+	}
 	else {
 		env_bits = FMOPL_ENV_BITS_LQ;
 		eg_ent = FMOPL_EG_ENT_LQ;

Index: fmopl.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/fmopl.h,v
retrieving revision 1.13
retrieving revision 1.13.2.1
diff -u -d -r1.13 -r1.13.2.1
--- fmopl.h	13 Mar 2004 18:44:10 -0000	1.13
+++ fmopl.h	28 Jan 2005 19:35:53 -0000	1.13.2.1
@@ -31,8 +31,10 @@
 
 enum {
 	FMOPL_ENV_BITS_HQ = 16,
+	FMOPL_ENV_BITS_MQ = 8,
 	FMOPL_ENV_BITS_LQ = 8,
 	FMOPL_EG_ENT_HQ = 4096,
+	FMOPL_EG_ENT_MQ = 1024,
 	FMOPL_EG_ENT_LQ = 128
 };
 





More information about the Scummvm-git-logs mailing list