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:
parent
24611cf5ed
commit
4e04e03142
1 changed files with 5 additions and 0 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue