用
BOOL PlaySound(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
看看说明吧
MediaPlayer 不合适的,
代码就放在
procedure TPlayThread.Execute;
begin
Priority:=tpLowest;
repeat
//在这了打开并播放音乐
PlaySound(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
//加上代码判断播放是否完毕等等..........重新播放
until Terminated;
end;