1
0
Fork 0

Add opl3gold option to oplmode setting. With this option the AdLib Gold music can be selected in Dune. Only FM music without effects (reverb, stereo enhancement, surround sound, etc.) is supported; and FM volume control, used in the CD-ROM version of Dune, does work.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3936
This commit is contained in:
ripsaw8080 2015-09-20 23:39:55 +00:00
parent 0c979d54a5
commit babb297c60
5 changed files with 86 additions and 3 deletions

View file

@ -90,7 +90,8 @@ struct Chip {
typedef enum {
MODE_OPL2,
MODE_DUALOPL2,
MODE_OPL3
MODE_OPL3,
MODE_OPL3GOLD
} Mode;
class Handler {
@ -125,8 +126,17 @@ class Module: public Module_base {
Bit32u normal;
Bit8u dual[2];
} reg;
struct {
bool active;
Bit8u index;
Bit8u lvol;
Bit8u rvol;
bool mixer;
} ctrl;
void CacheWrite( Bit32u reg, Bit8u val );
void DualWrite( Bit8u index, Bit8u reg, Bit8u val );
void CtrlWrite( Bit8u val );
Bitu CtrlRead( void );
public:
static OPL_Mode oplmode;
MixerChannel* mixerChan;