mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2024-11-10 20:12:10 +01:00
34 lines
651 B
C++
34 lines
651 B
C++
#ifndef MIDI_DRIVER_H
|
|
#define MIDI_DRIVER_H
|
|
|
|
/* midi_driver.h */
|
|
|
|
|
|
#include "core/typedefs.h"
|
|
#include "core/variant/variant.h"
|
|
|
|
/**
|
|
* Multi-Platform abstraction for accessing to MIDI.
|
|
*/
|
|
|
|
class MIDIDriver {
|
|
static MIDIDriver *singleton;
|
|
static uint8_t last_received_message;
|
|
|
|
public:
|
|
static MIDIDriver *get_singleton();
|
|
void set_singleton();
|
|
|
|
virtual Error open() = 0;
|
|
virtual void close() = 0;
|
|
|
|
virtual PoolStringArray get_connected_inputs();
|
|
|
|
static void receive_input_packet(uint64_t timestamp, uint8_t *data, uint32_t length);
|
|
|
|
MIDIDriver();
|
|
virtual ~MIDIDriver() {}
|
|
};
|
|
|
|
#endif
|