1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17:
| uses mmSystem, ...
procedure TForm1.Button1Click(Sender: TObject); begin mciSendString('open waveaudio!C:\snd01.wav alias snd01', nil, 0, 0); mciSendString('open waveaudio!C:\snd02.wav alias snd02', nil, 0, 0); mciSendString('play snd01', nil, 0, 0); mciSendString('play snd02', nil, 0, 0); end;
procedure TForm1.Button2Click(Sender: TObject); begin mciSendString('stop snd01', nil, 0, 0); mciSendString('stop snd02', nil, 0, 0); mciSendString('close snd01', nil, 0, 0); mciSendString('close snd02', nil, 0, 0); end; |