O
ortega
Unregistered / Unconfirmed
GUEST, unregistred user!
用MediaPlayer播放单个文件,可以听到声音,但是播放一个列表里面的文件,就听不到了var SL: TStringList;
iCount: integer;
begin
SL := TStringList.Create;
try SL.Add('cc');
... SL.Add('dd');
for iCount := 0 to SL.Count - 1do
begin
with MediaPlayerdo
try FileName := SL[iCount];
Open;
Play;
except end;
end;
finally SL.Free;
end;
end;
iCount: integer;
begin
SL := TStringList.Create;
try SL.Add('cc');
... SL.Add('dd');
for iCount := 0 to SL.Count - 1do
begin
with MediaPlayerdo
try FileName := SL[iCount];
Open;
Play;
except end;
end;
finally SL.Free;
end;
end;