#include <musicplugin.h>
Public Member Functions | |
virtual const char * | getId () const =0 |
virtual MusicDevices | getDevices () const =0 |
virtual bool | checkDevice (MidiDriver::DeviceHandle) const |
virtual Common::Error | createInstance (MidiDriver **mididriver, MidiDriver::DeviceHandle=0) const =0 |
Public Member Functions inherited from PluginObject | |
virtual const char * | getName () const =0 |
A MusicPluginObject is essentially a factory for MidiDriver instances with the added ability of listing the available devices and their capabilities.
|
pure virtual |
Returns a unique string identifier which will be used to save the selected MIDI driver to the config file.
Implemented in NullMusicPlugin.
|
pure virtual |
Returns a list of the available devices.
Implemented in NullMusicPlugin.
|
inlinevirtual |
Checks whether a device can actually be used. Currently this is only implemented for the MT-32 emulator to check whether the required rom files are present.
|
pure virtual |
Tries to instantiate a MIDI Driver instance based on the device previously detected via MidiDriver::detectDevice()
mididriver | Pointer to a pointer which the MusicPluginObject sets to the newly create MidiDriver, or 0 in case of an error |
dev | Pointer to a device to be used then creating the driver instance. Default value of zero for driver types without devices. |
Implemented in NullMusicPlugin.