alsa-seq: fix UMP output

We need to set the UMP flag, which is done with
snd_seq_ev_set_ump_data() to make it output the midi data.
This commit is contained in:
Wim Taymans 2025-03-11 13:29:38 +01:00
parent ff08c28b62
commit bf3c7aa6e1

View file

@ -845,9 +845,8 @@ static int process_write(struct seq_state *state)
#ifdef HAVE_ALSA_UMP
snd_seq_ump_event_t ev;
spa_zero(ev);
memcpy(ev.ump, body, SPA_MIN(sizeof(ev.ump), (size_t)body_size));
snd_seq_ump_ev_clear(&ev);
snd_seq_ev_set_ump_data(&ev, body, SPA_MIN(sizeof(ev.ump), (size_t)body_size));
snd_seq_ev_set_source(&ev, state->event.addr.port);
snd_seq_ev_set_dest(&ev, port->addr.client, port->addr.port);
snd_seq_ev_schedule_real(&ev, state->event.queue_id, 0, &out_rt);