aboutsummaryrefslogtreecommitdiff
path: root/audio/fmopl.cpp
diff options
context:
space:
mode:
authornukeykt2018-03-22 03:15:40 +0900
committerEugene Sandulenko2018-04-07 09:34:00 +0200
commitb2052bc66f0af9dc84cdc72badced3045daac2b2 (patch)
tree84bdf045d62cbb42a727cb2708577f62b76d1391 /audio/fmopl.cpp
parentc36a5f339555d11353ecbd704e4c812e77d4a0ae (diff)
downloadscummvm-rg350-b2052bc66f0af9dc84cdc72badced3045daac2b2.tar.gz
scummvm-rg350-b2052bc66f0af9dc84cdc72badced3045daac2b2.tar.bz2
scummvm-rg350-b2052bc66f0af9dc84cdc72badced3045daac2b2.zip
AUDIO: Add Nuked OPL3 core
Diffstat (limited to 'audio/fmopl.cpp')
-rw-r--r--audio/fmopl.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/audio/fmopl.cpp b/audio/fmopl.cpp
index a43b08c422..3756d98123 100644
--- a/audio/fmopl.cpp
+++ b/audio/fmopl.cpp
@@ -25,6 +25,7 @@
#include "audio/mixer.h"
#include "audio/softsynth/opl/dosbox.h"
#include "audio/softsynth/opl/mame.h"
+#include "audio/softsynth/opl/nuked.h"
#include "common/config-manager.h"
#include "common/system.h"
@@ -48,7 +49,8 @@ enum OplEmulator {
kAuto = 0,
kMame = 1,
kDOSBox = 2,
- kALSA = 3
+ kALSA = 3,
+ kNuked = 4
};
OPL::OPL() {
@@ -63,6 +65,9 @@ const Config::EmulatorDescription Config::_drivers[] = {
#ifndef DISABLE_DOSBOX_OPL
{ "db", _s("DOSBox OPL emulator"), kDOSBox, kFlagOpl2 | kFlagDualOpl2 | kFlagOpl3 },
#endif
+#ifndef DISABLE_NUKED_OPL
+ { "nuked", _s("Nuked OPL emulator"), kNuked, kFlagOpl2 | kFlagDualOpl2 | kFlagOpl3 },
+#endif
#ifdef USE_ALSA
{ "alsa", _s("ALSA Direct FM"), kALSA, kFlagOpl2 | kFlagDualOpl2 | kFlagOpl3 },
#endif
@@ -178,6 +183,11 @@ OPL *Config::create(DriverId driver, OplType type) {
return new DOSBox::OPL(type);
#endif
+#ifndef DISABLE_NUKED_OPL
+ case kNuked:
+ return new NUKED::OPL(type);
+#endif
+
#ifdef USE_ALSA
case kALSA:
return ALSA::create(type);