Add medium quality sound for FOTAQ

svn-id: r16676
This commit is contained in:
Nicolas Bacca 2005-01-28 20:46:36 +00:00
parent aeaf728dc6
commit 2f8f982f7d
2 changed files with 7 additions and 0 deletions

View File

@ -1147,6 +1147,11 @@ FM_OPL *makeAdlibOPL(int rate) {
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;

View File

@ -30,8 +30,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
};