From eb6c809d2b3ccf238fa5efbf45b6cd2b00a82cd9 Mon Sep 17 00:00:00 2001 From: Jordi Vilalta Prat Date: Wed, 14 May 2008 14:56:29 +0000 Subject: - 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 --- backends/midi/ypa1.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'backends/midi/ypa1.cpp') diff --git a/backends/midi/ypa1.cpp b/backends/midi/ypa1.cpp index 416215424e..37d90d45b0 100644 --- a/backends/midi/ypa1.cpp +++ b/backends/midi/ypa1.cpp @@ -112,6 +112,14 @@ public: return "Yamaha Pa1"; } + virtual const char *getId() const { + return "ypa1"; + } + + virtual int getCapabilities() const { + return MDT_MIDI; + } + virtual PluginError createInstance(Audio::Mixer *mixer, MidiDriver **mididriver) const; }; @@ -129,3 +137,9 @@ MidiDriver *MidiDriver_YamahaPa1_create(Audio::Mixer *mixer) { return mididriver; } + +//#if PLUGIN_ENABLED_DYNAMIC(YPA1) + //REGISTER_PLUGIN_DYNAMIC(YPA1, PLUGIN_TYPE_MIDI, YamahaPa1MidiPlugin); +//#else + REGISTER_PLUGIN_STATIC(YPA1, PLUGIN_TYPE_MIDI, YamahaPa1MidiPlugin); +//#endif -- cgit v1.2.3