From 80aa7e0bcb4d65dd8ed12b1d6c1ff5ad18007a6e Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Sat, 23 Feb 2019 18:48:38 +0100 Subject: support the Opal emulator --- 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 8d97442..7101319 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -43,6 +43,11 @@ static const unsigned OPLBase = 0x388; # ifndef ADLMIDI_DISABLE_DOSBOX_EMULATOR # include "chips/dosbox_opl3.h" # endif + +// Opal emulator +# ifndef ADLMIDI_DISABLE_OPAL_EMULATOR +# include "chips/opal_opl3.h" +# endif #endif static const unsigned adl_emulatorSupport = 0 @@ -54,6 +59,10 @@ static const unsigned adl_emulatorSupport = 0 # ifndef ADLMIDI_DISABLE_DOSBOX_EMULATOR | (1u << ADLMIDI_EMU_DOSBOX) # endif + +# ifndef ADLMIDI_DISABLE_OPAL_EMULATOR + | (1u << ADLMIDI_EMU_OPAL) +# endif #endif ; @@ -766,6 +775,11 @@ void OPL3::reset(int emulator, unsigned long PCM_RATE, void *audioTickHandler) case ADLMIDI_EMU_DOSBOX: chip = new DosBoxOPL3; break; +#endif +#ifndef ADLMIDI_DISABLE_OPAL_EMULATOR + case ADLMIDI_EMU_OPAL: + chip = new OpalOPL3; + break; #endif } m_chips[i].reset(chip); -- cgit v1.2.3