• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 137
  • Last Modified:

MMSystem296

Dropping a media player on the form, setting its properties, and compiling the app, I got this error message:
Project1.exe raised exception class TMCIDeviceError with message 'MMSystem296 The file cannot be played on the specified MCI device.  the file may be corrupt, or not in the correct format'.

My cdplayer plays CD audio disc without any problem, but I just can't use mediaplayer component in my delphi application.  Could someone please help me?

Henry Lim
Malaysia
0
henrylim
Asked:
henrylim
1 Solution
 
EpsylonCommented:
This plays an Audio CD just fine for me:

  with MediaPlayer1 do
  begin
    FileName := 'H:';
    DeviceType := dtCDAudio;
    Open;
    Play;
  end;

0
 
EpsylonCommented:
This plays an Audio CD just fine for me:

  with MediaPlayer1 do
  begin
    FileName := 'H:';
    DeviceType := dtCDAudio;
    Open;
    Play;
  end;


0
 
xpherCommented:
If your using D4 there is a bug in MediaPlayer. I'll find my notes on it for you if this is the case.

xpher
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
EpsylonCommented:
I'm using Delphi 4 and experience no problems.
When you forget to assign the driveletter to the filename property you will get the MMSystem296 error.
0
 
intheCommented:
agreed
0
 
EpsylonCommented:
Glad to hear, Barry  :o)
0
 
henrylimAuthor Commented:
You're right.  I didn't assign a drive letter to the file name.  As what XPher said, there's a bug in TMediaPlayer in D4.  I built a CD Player in D3 and I didn't have to take care of the file name.

Thanks to all of you.


0
 
EpsylonCommented:
Why should this have to be a bug? What other way would there be to select a CDROM drive if you have more than one.

Epsylon.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now