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 */