//播放声音
procedure myplaySound(const fileName: string; HInstance: LongWord; isLoop: Boolean);
begin //
if FileExists(fileName) then
begin
if not isLoop then
PlaySound(pchar(fileName), HInstance, 0 or SND_FILENAME or SND_ASYNC)
else
PlaySound(pchar(fileName), HInstance, 0 or SND_FILENAME or SND_ASYNC or SND_LOOP);
end;
end;