From b2052bc66f0af9dc84cdc72badced3045daac2b2 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Thu, 22 Mar 2018 03:15:40 +0900 Subject: AUDIO: Add Nuked OPL3 core --- audio/fmopl.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'audio/fmopl.cpp') 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); -- cgit v1.2.3