mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
Fixed: MIDI meta events were completely discarded, including their delays
(unless the event was for setting the tempo) This left the following events in the track to happen at the wrong time.
This commit is contained in:
parent
68c0f929dc
commit
1a356dfa51
1 changed files with 10 additions and 0 deletions
|
@ -661,6 +661,16 @@ DWORD *MIDISong2::SendCommand (DWORD *events, TrackInfo *track, DWORD delay, ptr
|
|||
events[2] = (MEVT_TEMPO << 24) | Tempo;
|
||||
events += 3;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (delay != 0)
|
||||
{
|
||||
events[0] = delay;
|
||||
events[1] = 0;
|
||||
events[2] = MEVT_NOP << 24;
|
||||
events += 3;
|
||||
}
|
||||
break;
|
||||
}
|
||||
track->TrackP += len;
|
||||
if (track->TrackP == track->MaxTrackP)
|
||||
|
|
Loading…
Reference in a new issue