mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
- Added more information (ID and capabilities) to the MIDI drivers
- Added the MidiPlugin interface to the remaining MIDI drivers - Added an initial MidiManager to handle the MIDI plugins (just static plugins by now) svn-id: r32117
This commit is contained in:
@@ -179,6 +179,14 @@ public:
|
||||
return "SEQ";
|
||||
}
|
||||
|
||||
virtual const char *getId() const {
|
||||
return "seq";
|
||||
}
|
||||
|
||||
virtual int getCapabilities() const {
|
||||
return MDT_MIDI;
|
||||
}
|
||||
|
||||
virtual PluginError createInstance(Audio::Mixer *mixer, MidiDriver **mididriver) const;
|
||||
};
|
||||
|
||||
@@ -197,4 +205,10 @@ MidiDriver *MidiDriver_SEQ_create(Audio::Mixer *mixer) {
|
||||
return mididriver;
|
||||
}
|
||||
|
||||
//#if PLUGIN_ENABLED_DYNAMIC(SEQ)
|
||||
//REGISTER_PLUGIN_DYNAMIC(SEQ, PLUGIN_TYPE_MIDI, SeqMidiPlugin);
|
||||
//#else
|
||||
REGISTER_PLUGIN_STATIC(SEQ, PLUGIN_TYPE_MIDI, SeqMidiPlugin);
|
||||
//#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user