From 479f4210075dcee62f4cfe99a8802aa72cef08a7 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 22 Aug 2020 13:01:56 +0300 Subject: [PATCH] - fixed event processing in XMI reader Event pointer was moved forward twice leaving arbitrary garbage data in the stream https://forum.zdoom.org/viewtopic.php?t=69631 --- libraries/zmusic/midisources/midisource_xmi.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/zmusic/midisources/midisource_xmi.cpp b/libraries/zmusic/midisources/midisource_xmi.cpp index 2e1e51214..bbd282c42 100644 --- a/libraries/zmusic/midisources/midisource_xmi.cpp +++ b/libraries/zmusic/midisources/midisource_xmi.cpp @@ -483,7 +483,6 @@ uint32_t *XMISong::SendCommand (uint32_t *events, EventSource due, uint32_t dela { events[2] = event | (data1<<8) | (data2<<16); } - events += 3; if ((event & 0x70) == (MIDI_NOTEON & 0x70))