试着运行以下代码,播放正常,不知为什么会这样。
long Lasttime = 0;
long Interval= 0;
for (int I = 0; I <= Count - 1; I++)
{
Interval =vec[I].TrackTime-Lasttime;
System.Threading.Thread.Sleep(Interval/1000);
a = vec[I].EventByte;
b = vec[I].Param1;
c = vec[I].Param2;
SendNote(a, b, c);
Lasttime =vec[I].TrackTime;
}