From c452d2bb36430b57969e249f48fdf1ed4fe3c44d Mon Sep 17 00:00:00 2001 From: jofemodo Date: Sat, 20 Jan 2024 19:23:16 +0100 Subject: [PATCH] Fix routing system messages to zmops. --- zynmidirouter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zynmidirouter.c b/zynmidirouter.c index ff1984c..7e2f59b 100644 --- a/zynmidirouter.c +++ b/zynmidirouter.c @@ -1277,11 +1277,11 @@ int jack_process(jack_nframes_t nframes, void *arg) { goto zmop_event_processed; } // Drop "System messages" if configured in zmop options, except from internal sources (UI) - else if ((zmop->flags & FLAG_ZMOP_DROPSYS) && izmip != ZMIP_FAKE_UI) { + else if ((event_type > SYSTEM_EXCLUSIVE) && (zmop->flags & FLAG_ZMOP_DROPSYS) && (izmip != ZMIP_FAKE_UI)) { continue; } // Drop "System Exclusive messages" if configured in zmop options - else if (zmop->flags & FLAG_ZMOP_DROPSYSEX) { + else if ((event_type == SYSTEM_EXCLUSIVE) && (zmop->flags & FLAG_ZMOP_DROPSYSEX)) { continue; }