diff options
author | Florian Kagerer | 2010-08-11 18:54:56 +0000 |
---|---|---|
committer | Florian Kagerer | 2010-08-11 18:54:56 +0000 |
commit | 4a159bcb1e086d03c7bd1216694552ed5a83103e (patch) | |
tree | df4c767bf3911bbb7ffa6dabbdea7a3a2220235e /sound/mods | |
parent | 0c7932cc7cd54ea8fdee9d12663657d67eaa7639 (diff) | |
download | scummvm-rg350-4a159bcb1e086d03c7bd1216694552ed5a83103e.tar.gz scummvm-rg350-4a159bcb1e086d03c7bd1216694552ed5a83103e.tar.bz2 scummvm-rg350-4a159bcb1e086d03c7bd1216694552ed5a83103e.zip |
GUI: add music devices for c64, amiga and apple II gs
These devices are not able to create appropriate drivers.
The only purpose for now is having proper gui options and flags and music types for the device detector.
The corresponding GUIO flags for the new devices have been added, too.
svn-id: r51995
Diffstat (limited to 'sound/mods')
-rw-r--r-- | sound/mods/paula.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sound/mods/paula.cpp b/sound/mods/paula.cpp index 45626bb2ec..c39b37f83d 100644 --- a/sound/mods/paula.cpp +++ b/sound/mods/paula.cpp @@ -24,6 +24,7 @@ */ #include "sound/mods/paula.h" +#include "sound/null.h" namespace Audio { @@ -178,3 +179,34 @@ int Paula::readBufferIntern(int16 *buffer, const int numSamples) { } } // End of namespace Audio + + +// Plugin interface +// (This can only create a null driver since apple II gs support seeems not to be implemented +// and also is not part of the midi driver architecture. But we need the plugin for the options +// menu in the launcher and for MidiDriver::detectDevice() which is more or less used by all engines.) + +class AmigaMusicPlugin : public NullMusicPlugin { +public: + const char *getName() const { + return _s("Amiga Audio Emulator"); + } + + const char *getId() const { + return "amiga"; + } + + MusicDevices getDevices() const; +}; + +MusicDevices AmigaMusicPlugin::getDevices() const { + MusicDevices devices; + devices.push_back(MusicDevice(this, "", MT_AMIGA)); + return devices; +} + +//#if PLUGIN_ENABLED_DYNAMIC(AMIGA) + //REGISTER_PLUGIN_DYNAMIC(AMIGA, PLUGIN_TYPE_MUSIC, AmigaMusicPlugin); +//#else + REGISTER_PLUGIN_STATIC(AMIGA, PLUGIN_TYPE_MUSIC, AmigaMusicPlugin); +//#endif |