aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_opl3.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2025-03-24 12:52:44 +0300
committerWohlstand <admin@wohlnet.ru>2025-03-24 12:52:44 +0300
commitbee3fd0d7460d449a167b732213a7fc0cd43cfe9 (patch)
treedd62f8f127c74b4e744289d52886163d37b0a6f5 /src/adlmidi_opl3.cpp
parenta6385b868096239813610cf54f0c6c2efcbe6e23 (diff)
downloadlibADLMIDI-bee3fd0d7460d449a167b732213a7fc0cd43cfe9.tar.gz
libADLMIDI-bee3fd0d7460d449a167b732213a7fc0cd43cfe9.tar.bz2
libADLMIDI-bee3fd0d7460d449a167b732213a7fc0cd43cfe9.zip
Added experimental support of ESFMu emulator
Not yet working properly
Diffstat (limited to 'src/adlmidi_opl3.cpp')
-rw-r--r--src/adlmidi_opl3.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp
index a780339..4d54e8a 100644
--- a/src/adlmidi_opl3.cpp
+++ b/src/adlmidi_opl3.cpp
@@ -61,6 +61,11 @@ static const unsigned OPLBase = 0x388;
# include "chips/java_opl3.h"
# endif
+// ESFMu emulator
+# ifndef ADLMIDI_DISABLE_ESFMU_EMULATOR
+# include "chips/esfmu_opl3.h"
+# endif
+
// HW OPL Serial
# ifdef ADLMIDI_ENABLE_HW_SERIAL
# include "chips/opl_serial_port.h"
@@ -81,6 +86,10 @@ static const unsigned adl_emulatorSupport = 0
| (1u << ADLMIDI_EMU_OPAL)
# endif
+# ifndef ADLMIDI_DISABLE_ESFMU_EMULATOR
+ | (1u << ADLMIDI_EMU_ESFMu)
+# endif
+
# ifndef ADLMIDI_DISABLE_JAVA_EMULATOR
| (1u << ADLMIDI_EMU_JAVA)
# endif
@@ -1814,6 +1823,11 @@ void OPL3::reset(int emulator, unsigned long PCM_RATE, void *audioTickHandler)
chip = new JavaOPL3;
break;
#endif
+#ifndef ADLMIDI_DISABLE_ESFMU_EMULATOR
+ case ADLMIDI_EMU_ESFMu:
+ chip = new ESFMuOPL3;
+ break;
+#endif
}
m_chips[i].reset(chip);