0
0x0
Unregistered / Unconfirmed
GUEST, unregistred user!
for j:=0 to 4do
play[j]:='';
play[0]:=getcurrentdir()+'/sound/12.wav';
if Copy(dw,0,3)='ppp' then
play[1]:=getcurrentdir()+'/sound/1.wav'
else
play[1]:=getcurrentdir()+'/sound/1.wav';
if dw1>'0' then
play[2]:=getcurrentdir()+pchar(dw4);
if dw2>'0' then
play[3]:=getcurrentdir()+pchar(dw5);
if dw3>'0' then
play[4]:=getcurrentdir()+pchar(dw6);
play[5]:=getcurrentdir()+'/sound/OVER.wav';
MediaPlayer1.FileName :=play[0];
MediaPlayer1.Open ;
MediaPlayer1.Play ;
Timer2.Enabled :=true;
end;
procedure TForm1.Timer2Timer(Sender: TObject);
begin
if MediaPlayer1.Mode=mpstopped then
//(到这里是就MediaPlayer1.Mode就不能执行下去了!)
playsoune;
end;
play[j]:='';
play[0]:=getcurrentdir()+'/sound/12.wav';
if Copy(dw,0,3)='ppp' then
play[1]:=getcurrentdir()+'/sound/1.wav'
else
play[1]:=getcurrentdir()+'/sound/1.wav';
if dw1>'0' then
play[2]:=getcurrentdir()+pchar(dw4);
if dw2>'0' then
play[3]:=getcurrentdir()+pchar(dw5);
if dw3>'0' then
play[4]:=getcurrentdir()+pchar(dw6);
play[5]:=getcurrentdir()+'/sound/OVER.wav';
MediaPlayer1.FileName :=play[0];
MediaPlayer1.Open ;
MediaPlayer1.Play ;
Timer2.Enabled :=true;
end;
procedure TForm1.Timer2Timer(Sender: TObject);
begin
if MediaPlayer1.Mode=mpstopped then
//(到这里是就MediaPlayer1.Mode就不能执行下去了!)
playsoune;
end;