]> git.sesse.net Git - nageru/blobdiff - midi_mapper.cpp
Ignore data from MIDI through; it causes us to basically go into an infinite loop.
[nageru] / midi_mapper.cpp
index b19f42c316cd40a7940edd1788845abfeb503481..fc3b4ef30bf06b274661ad6aa9415d4d0dbb4ff0 100644 (file)
@@ -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;
        }