From f346b58908f734cd71e837545992256085745024 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 11 Feb 2017 19:22:18 +0100 Subject: [PATCH] Ignore data from MIDI through; it causes us to basically go into an infinite loop. --- midi_mapper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/midi_mapper.cpp b/midi_mapper.cpp index b19f42c..fc3b4ef 100644 --- a/midi_mapper.cpp +++ b/midi_mapper.cpp @@ -390,8 +390,9 @@ void MIDIMapper::handle_event(snd_seq_t *seq, snd_seq_event_t *event) void MIDIMapper::subscribe_to_port_lock_held(snd_seq_t *seq, const snd_seq_addr_t &addr) { - // Client 0 is basically the system; ignore it. - if (addr.client == 0) { + // Client 0 (SNDRV_SEQ_CLIENT_SYSTEM) is basically the system; ignore it. + // MIDI through (SNDRV_SEQ_CLIENT_DUMMY) echoes back what we give it, so ignore that, too. + if (addr.client == 0 || addr.client == 14) { return; } -- 2.39.2