From 1b4b7ddbfe4852a7eccaa25fdd7c8d2c4a1cd9d2 Mon Sep 17 00:00:00 2001 From: Bill Peterson Date: Fri, 10 Jun 2022 03:49:30 -0500 Subject: [PATCH] alsa_seq pass system realtime messages --- src/drivers/fluid_alsa.c | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/src/drivers/fluid_alsa.c b/src/drivers/fluid_alsa.c index 6f930edf..ec35d9f6 100644 --- a/src/drivers/fluid_alsa.c +++ b/src/drivers/fluid_alsa.c @@ -1339,13 +1339,33 @@ fluid_alsa_seq_run(void *d) break; case SND_SEQ_EVENT_PORT_START: - { - if(dev->autoconn_inputs) { - fluid_alsa_seq_autoconnect_port(dev, seq_ev->data.addr.client, seq_ev->data.addr.port); + if(dev->autoconn_inputs) + { + fluid_alsa_seq_autoconnect_port(dev, seq_ev->data.addr.client, seq_ev->data.addr.port); + } } - } - break; + break; + + case SND_SEQ_EVENT_START: + evt.type = MIDI_START; + break; + + case SND_SEQ_EVENT_CONTINUE: + evt.type = MIDI_CONTINUE; + break; + + case SND_SEQ_EVENT_STOP: + evt.type = MIDI_STOP; + break; + + case SND_SEQ_EVENT_CLOCK: + evt.type = MIDI_SYNC; + break; + + case SND_SEQ_EVENT_RESET: + evt.type = MIDI_SYSTEM_RESET; + break; default: continue; /* unhandled event, next loop iteration */