From a4081be22c8f39b343e68c4f798cd8f1be828115 Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Fri, 7 Jan 2022 18:09:16 +0200 Subject: [PATCH] Pass sysex messages in mpu-401 uart mode --- src/sound/snd_mpu401.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/sound/snd_mpu401.c b/src/sound/snd_mpu401.c index 1002e72f5..5ada36829 100644 --- a/src/sound/snd_mpu401.c +++ b/src/sound/snd_mpu401.c @@ -1385,6 +1385,17 @@ MPU401_InputSysex(void *p, uint8_t *buffer, uint32_t len, int abort) mpu401_log("MPU401 Input Sysex\n"); +#ifdef DOSBOX_CODE + if (mpu->mode == M_UART) { +#else + if (!mpu->intelligent && mpu->mode == M_UART) { +#endif + /* UART mode input. */ + for (i = 0; i < len; i++) + MPU401_QueueByte(mpu, buffer[i]); + return 0; + } + if (mpu->filter.sysex_in) { if (abort) { mpu->state.sysex_in_finished=1;