🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #41

TMediaPlayer can't play MP3's

#41
From: Mathias Thorell
Date: Tue, 16 May 2006 04:51
46 lines
2722 bytes
Hello all !

I'm going completly nuts over this :

I want to play an MP3-file using TMediaPlayer.
I have tried this on 2 different machines (all with the latest hotfixes 
and Windows Media player installed):
   PC #1: W2K Prof   : Fails in mciSendCommand(...MCI_OPEN...).
   PC #2: W2K Prof   : Works perfectly.
   PC #2: WinXP Prof : Fails in mciSendCommand(...MCI_OPEN...).

The error I get is 266; "Unknown problem while loading the specified 
device driver."

All machines/OS's listed above plays an MP3 perfectly well if I load it 
up with Windows Media Player (v9.00.00.3344), even with the "old" one, 
v6.4.09.1129.

As I understand, the Windows MediaPlayer is using the mci API to render 
a file, right ?

The installed codecs differs heavily, and PC #2 booted in WinXP has a 
native WinXP installation, only the latest hotfixes and SP's installed, 
and it fails too...
All of them has the Fraunhofer MP3 decoder, isn't that all I should need 
? I even tried to move that codec to the highest priority in the system 
codec list without any success :(

I have tried with every, single option set up for the DeviceType 
property without luck. I have also tried using the mciSendCommand() 
function directly (i.e. not using the TMediaPlayer) in "string command 
mode", i.e. "open E:\\Test.mp3 type mpegvideo alias test", with the same 
results.

Why does this work on some machines and not in some other ?
Is it just another example of MS Windows not being compatible with itself ?

What I want to do is to open a small MP3-file to see if the PC can play 
it (and in most cases, it can't, grrr).
If the PC is able to play MP3's, I enable a menuitem that will play 
different, selectable MP3 HTTP Streams.

TIA,
/Mathias

PS. Don't tell me to use FMod... DS.
Technical Details
Message-ID: <44695a5b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,e075f12cbf004ed2,start
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 16 May 2006 00:51:40 -0400
From: Mathias Thorell <Tias@mi.cl>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.multimedia
Subject: TMediaPlayer can't play MP3's
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 200.74.70.108
Message-ID: <44695a5b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1147755099 200.74.70.108 (15 May 2006 21:51:39 -0700)
Lines: 46
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail