alsa: add UMP support

Use the new UMP alsa sequencer API to make it produce UMP packets.

Set the alsa sequencer to MIDI2.0, which will make it convert all
messages to MIDI-2.0 UMP automatically. We can copy this straight into
the control buffers.

This also solves some problems with large sysex messages that are now
nicely split into chunks with UMP.
This commit is contained in:
Wim Taymans 2024-07-26 15:15:52 +02:00
parent 7f38653589
commit 94bb5a2dd2
3 changed files with 42 additions and 55 deletions

View file

@ -13,6 +13,7 @@ extern "C" {
#include <math.h>
#include <alsa/asoundlib.h>
#include <alsa/ump_msg.h>
#include <spa/support/plugin.h>
#include <spa/support/loop.h>