PDA

Click to See Complete Forum and Search --> : [DELPHI] - Using MIDI Files


Madboy
Jun 4th, 2005, 12:54 PM
uses
MMSystem;

// Play
procedure TForm1.Button1Click;
const
FileName = 'C:\Test.mid';
begin
MCISendString(PChar('play ' + FileName), nil, 0, 0);
end;

// Stop
procedure TForm1.Button1Click;
const
FileName = 'C:\Test.mid';
begin
MCISendString(PChar('stop ' + FileName), nil, 0, 0);
end;