From 27e75763a6d736453e803778288841a2b0ed7bd9 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 19 Feb 2023 19:02:30 +0100 Subject: [PATCH] Ignore MIDI events sent to UI, print type of unknown ones Signed-off-by: falkTX --- distrho/src/DistrhoUILV2.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/distrho/src/DistrhoUILV2.cpp b/distrho/src/DistrhoUILV2.cpp index 3033450a..990db39a 100644 --- a/distrho/src/DistrhoUILV2.cpp +++ b/distrho/src/DistrhoUILV2.cpp @@ -214,9 +214,14 @@ public: fUI.stateChanged(key, value); } } + else if (atom->type == fURIDs.midiEvent) + { + // ignore + } else { - d_stdout("DPF :: received atom not handled"); + d_stdout("DPF :: received atom not handled :: %s", + fUridUnmap != nullptr ? fUridUnmap->unmap(fUridUnmap->handle, atom->type) : "(null)"); } } #endif