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:
Randy Heit 2016-01-20 14:53:56 -06:00
parent 68c0f929dc
commit 1a356dfa51

View file

@ -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)