Skip to content

Commit

Permalink
Fix routing system messages to zmops.
Browse files Browse the repository at this point in the history
  • Loading branch information
jofemodo committed Jan 20, 2024
1 parent 1250297 commit c452d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zynmidirouter.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit c452d2b

Please sign in to comment.