- 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:
parent
e2d58f4885
commit
eb6c809d2b
21 changed files with 447 additions and 26 deletions
|
@ -520,6 +520,14 @@ public:
|
|||
return "TiMidity";
|
||||
}
|
||||
|
||||
virtual const char *getId() const {
|
||||
return "timidity";
|
||||
}
|
||||
|
||||
virtual int getCapabilities() const {
|
||||
return MDT_MIDI;
|
||||
}
|
||||
|
||||
virtual PluginError createInstance(Audio::Mixer *mixer, MidiDriver **mididriver) const;
|
||||
};
|
||||
|
||||
|
@ -538,4 +546,10 @@ MidiDriver *MidiDriver_TIMIDITY_create(Audio::Mixer *mixer) {
|
|||
return mididriver;
|
||||
}
|
||||
|
||||
//#if PLUGIN_ENABLED_DYNAMIC(TIMIDITY)
|
||||
//REGISTER_PLUGIN_DYNAMIC(TIMIDITY, PLUGIN_TYPE_MIDI, TimidityMidiPlugin);
|
||||
//#else
|
||||
REGISTER_PLUGIN_STATIC(TIMIDITY, PLUGIN_TYPE_MIDI, TimidityMidiPlugin);
|
||||
//#endif
|
||||
|
||||
#endif // defined (UNIX)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue