mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 11:20:40 +00:00
SOUND: Properly add CMS as plugin.
svn-id: r52779
This commit is contained in:
parent
cc764cb8ec
commit
d477d66f49
@ -206,6 +206,7 @@ public:
|
||||
LINK_PLUGIN(ADLIB)
|
||||
LINK_PLUGIN(PCSPK)
|
||||
LINK_PLUGIN(PCJR)
|
||||
LINK_PLUGIN(CMS)
|
||||
#ifndef DISABLE_SID
|
||||
LINK_PLUGIN(C64)
|
||||
#endif
|
||||
|
@ -58,7 +58,7 @@ const byte MidiDriver::_gmToMt32[128] = {
|
||||
|
||||
static const uint32 GUIOMapping[] = {
|
||||
MT_PCSPK, Common::GUIO_MIDIPCSPK,
|
||||
/*MDT_CMS, Common::GUIO_MIDICMS,*/
|
||||
MT_CMS, Common::GUIO_MIDICMS,
|
||||
MT_PCJR, Common::GUIO_MIDIPCJR,
|
||||
MT_ADLIB, Common::GUIO_MIDIADLIB,
|
||||
MT_C64, Common::GUIO_MIDIC64,
|
||||
|
@ -23,8 +23,10 @@
|
||||
*/
|
||||
|
||||
#include "sound/softsynth/cms.h"
|
||||
#include "sound/null.h"
|
||||
|
||||
#include "common/textconsole.h"
|
||||
#include "common/translation.h"
|
||||
|
||||
// CMS/Gameblaster Emulation taken from DosBox
|
||||
|
||||
@ -341,3 +343,27 @@ void CMSEmulator::portWriteIntern(int chip, int offset, int data) {
|
||||
}
|
||||
}
|
||||
|
||||
class CMSMusicPlugin : public NullMusicPlugin {
|
||||
public:
|
||||
const char *getName() const {
|
||||
return _s("Creative Music System Emulator");
|
||||
}
|
||||
|
||||
const char *getId() const {
|
||||
return "cms";
|
||||
}
|
||||
|
||||
MusicDevices getDevices() const;
|
||||
};
|
||||
|
||||
MusicDevices CMSMusicPlugin::getDevices() const {
|
||||
MusicDevices devices;
|
||||
devices.push_back(MusicDevice(this, "", MT_CMS));
|
||||
return devices;
|
||||
}
|
||||
|
||||
//#if PLUGIN_ENABLED_DYNAMIC(CMS)
|
||||
//REGISTER_PLUGIN_DYNAMIC(CMS, PLUGIN_TYPE_MUSIC, CMSMusicPlugin);
|
||||
//#else
|
||||
REGISTER_PLUGIN_STATIC(CMS, PLUGIN_TYPE_MUSIC, CMSMusicPlugin);
|
||||
//#endif
|
||||
|
Loading…
Reference in New Issue
Block a user