libretro.drivers.midi.driver¶
Protocol definition for MIDI input/output drivers.
See also
libretro.api.midiThe matching
ctypestypes and callback definitions.
Classes
Protocol for drivers that expose MIDI input and output streams to a core. |
- class MidiDriver[source]¶
Bases:
ProtocolProtocol for drivers that expose MIDI input and output streams to a core.
See also
libretro.api.midiThe matching
ctypestypes and callback definitions.
- abstract property input_enabled¶
Whether MIDI input is currently enabled.
- abstract property output_enabled¶
Whether MIDI output is currently enabled.
- abstractmethod read()[source]¶
Read the next MIDI byte from the input stream.
See also
retro_midi_read_tThe C function pointer type whose signature this method implements.
- abstractmethod write(byte, delta_time)[source]¶
Append a single MIDI byte to the output stream.
- Parameters:
- Return type:
- Returns:
Trueif the byte was buffered for output.
See also
retro_midi_write_tThe C function pointer type whose signature this method implements.
- abstractmethod flush()[source]¶
Send all buffered output bytes to the underlying MIDI device.
See also
retro_midi_flush_tThe C function pointer type whose signature this method implements.
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶