implementation
constructor TMidiThread.Create(isRun:Boolean);
begin
Fmidi:=Tmidiplayer.Create;
inherited Create(isRun);
end;
procedure TMidiThread.Play;
begin
fmidi.filename:='c:/mmm.mid';
fmidi.play;
end;
procedure TMidiThread.Execute;
begin
{ Place thread code here }
Play;
end;