Registriert seit: 21. Jun 2002
602 Beiträge
|
17. Sep 2002, 13:53
Wichtig ist das Schlißen des Geräts:
Code:
uses
MMSystem;
type
TForm1 = class(TForm)
private
procedure MMMCINotify(var Msg: TMessage); message MM_MCINOTIFY;
// ...
end;
procedure TForm1.Button1Click;
const
FileName = 'C:\YourFile.mid';
begin
MCISendString(PChar('play ' + FileName + ' notify alias sound'), nil, 0, Handle);
end;
procedure TForm1.MMMCINotify(var Msg: TMessage);
begin
MCISendString('close sound', nil, 0, 0);
end;
MfG,
d3g
-- Crucifixion?
-- Yes.
-- Good. Out of the door, line on the left, one cross each.
|