From c903e6df7b3dde7de714311360130a3d0219d873 Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Sun, 24 Feb 2019 00:13:35 +0100 Subject: javaopl3 work in progress --- src/adlmidi_opl3.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/adlmidi_opl3.cpp') diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index 7101319..a7bffc3 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -48,6 +48,11 @@ static const unsigned OPLBase = 0x388; # ifndef ADLMIDI_DISABLE_OPAL_EMULATOR # include "chips/opal_opl3.h" # endif + +// Java emulator +# ifndef ADLMIDI_DISABLE_JAVA_EMULATOR +# include "chips/java_opl3.h" +# endif #endif static const unsigned adl_emulatorSupport = 0 @@ -63,6 +68,10 @@ static const unsigned adl_emulatorSupport = 0 # ifndef ADLMIDI_DISABLE_OPAL_EMULATOR | (1u << ADLMIDI_EMU_OPAL) # endif + +# ifndef ADLMIDI_DISABLE_JAVA_EMULATOR + | (1u << ADLMIDI_EMU_JAVA) +# endif #endif ; @@ -780,6 +789,11 @@ void OPL3::reset(int emulator, unsigned long PCM_RATE, void *audioTickHandler) case ADLMIDI_EMU_OPAL: chip = new OpalOPL3; break; +#endif +#ifndef ADLMIDI_DISABLE_JAVA_EMULATOR + case ADLMIDI_EMU_JAVA: + chip = new JavaOPL3; + break; #endif } m_chips[i].reset(chip); -- cgit v1.2.3