#include <musicplugin.h>
A MusicPluginObject is essentially a factory for MidiDriver instances with the added ability of listing the available devices and their capabilities.
◆ getId()
virtual const char* MusicPluginObject::getId |
( |
| ) |
const |
|
pure virtual |
Returns a unique string identifier which will be used to save the selected MIDI driver to the config file.
Implemented in NullMusicPlugin.
◆ getDevices()
virtual MusicDevices MusicPluginObject::getDevices |
( |
| ) |
const |
|
pure virtual |
◆ checkDevice()
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. In the default implementation, the device is not available as an auto-selected device.
- Parameters
-
hdl | MIDI device handle |
checkFlags | Bitwise OR mask of MidiDriverCheckFlags |
quiet | If true, suppress and error messages on check failure. |
◆ createInstance()
Tries to instantiate a MIDI Driver instance based on the device previously detected via MidiDriver::detectDevice()
- Parameters
-
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. |
- Returns
- a Common::Error describing the error which occurred, or kNoError
Implemented in NullMusicPlugin.
The documentation for this class was generated from the following file: