bluez5: implement Bluetooth MIDI nodes

Implement BLE MIDI node, providing an input and output port.  MIDI data
received is normalized and produced on output port.  Data from input
port is converted to BLE MIDI and sent to the device.

Event timestamps come from device clock, whose offset to wall clock we
determine by correlating packet reception times with their timestamps.
The jitter in packet reception is likely much larger than device clock
error, so we average over that.
This commit is contained in:
Pauli Virtanen 2022-10-30 16:54:57 +02:00 committed by Wim Taymans
parent fe3ca50818
commit fe11bfdba0
3 changed files with 1912 additions and 0 deletions

View file

@ -33,6 +33,7 @@ bluez5_sources = [
'dbus-monitor.c',
'midi-enum.c',
'midi-parser.c',
'midi-node.c',
]
bluez5_data = ['bluez-hardware.conf']