9#include "utils/utf8_string.h"
31 std::map<utils::Utf8String, std::shared_ptr<dsp::MidiDeviceBuffer>>;
32 using DeviceChangeCallback = std::function<void ()>;
Abstraction for hardware MIDI interface.
virtual BufferMap device_buffers() const =0
Returns the current map of device identifiers to buffers.
virtual void set_device_change_callback(std::optional< DeviceChangeCallback > cb)=0
Registers a notification-only device change callback.
Lock-free SPSC buffer for MIDI events between the MIDI device thread and the audio thread.