Playing MP3 in Delphi


[ DelphiLand FAQ ]

Posted by Zojaji on October 15, 2004 at 18:28:01:

I want to play a mp3 file in delphi,
I wrote:

if OpenDialog1.Execute then
begin
MediaPlayer1.DeviceType:=dtAutoSelect;
MediaPlayer1.FileName:=OpenDialog1.FileName;
MediaPlayer1.Open;
end;

but it works with some computers and do not work with others and send a EMCIDeviceError message.
This program works with some mp3 files on all computers but don't play a special mp3 file on some of them.
All of computers that don't play this file are fast computers (with windows XP & 2000)
This mp3 file (that don't play) spec. is:
16kbit, 27894 frames 11025Hz Mono

What is the solotion?
Thanx.



Related Articles and Replies


[ Delphi Forum -- by DelphiLand ]