- 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:
Jordi Vilalta Prat 2008-05-14 14:56:29 +00:00
parent e2d58f4885
commit eb6c809d2b
21 changed files with 447 additions and 26 deletions

View file

@ -259,6 +259,14 @@ public:
return "QuickTime";
}
virtual const char *getId() const {
return "qt";
}
virtual int getCapabilities() const {
return MDT_MIDI;
}
virtual PluginError createInstance(Audio::Mixer *mixer, MidiDriver **mididriver) const;
};
@ -277,4 +285,10 @@ MidiDriver *MidiDriver_QT_create(Audio::Mixer *mixer) {
return mididriver;
}
//#if PLUGIN_ENABLED_DYNAMIC(QT)
//REGISTER_PLUGIN_DYNAMIC(QT, PLUGIN_TYPE_MIDI, QuickTimeMidiPlugin);
//#else
REGISTER_PLUGIN_STATIC(QT, PLUGIN_TYPE_MIDI, QuickTimeMidiPlugin);
//#endif
#endif // MACOSX || macintosh