Einzelnen Beitrag anzeigen

Benutzerbild von d3g
d3g

Registriert seit: 21. Jun 2002
602 Beiträge
 
#21

Re: Midi-Dateien abspielen (ohne MP)

  Alt 12. Jan 2005, 19:43
Fehler 263 ist MCIERR_INVALID_DEVICE_NAME.

Probiere mal:
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
const
  FileName = 'C:\YourFile.mid';
begin
  MCISendString(PChar('open ' + FileName + ' type sequencer alias sound'), nil, 0, Handle);
  MCISendString('play sound notify', nil, 0, Handle);
end;
-- Crucifixion?
-- Yes.
-- Good. Out of the door, line on the left, one cross each.
  Mit Zitat antworten Zitat