midi: properly skip sysex messages

this fixes playing any midi files containing such messages
example: prince of persia midis from vgmpf wiki
This commit is contained in:
qwx 2018-07-10 23:26:17 +02:00
parent 24611cf5ed
commit 4e04e03142

View file

@ -181,6 +181,11 @@ readevent(Tracker *src)
get16(src);
break;
case 0xF:
if((t & 0xF) == 0){
while(get8(src) != 0xF7)
;
return;
}
t = get8(src);
n = get8(src);
switch(t){