BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TMediaPlayer and WAV files.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
Richard Stephens
Guest





PostPosted: Mon Mar 19, 2007 8:08 pm    Post subject: TMediaPlayer and WAV files. Reply with quote



I migrated from Delphi 5 to Delphi 2006.

I cannot get the TMediaPlayer to play WAV files under Delphi 2006. This
worked fine under Delphi 2005, and I haven't changed anything but the
version of Delphi.

I tested the control as a dtCDAudio, and that played just fine. But
dtWaveAudio just will not work.

WAV files play just fine through the Windows Media Player, so I know that
the PC will play WAVs.

My control's settings are:

AutoEnable := True
AutoOpen := True
AutoRewind := True
DeviceType := dtWaveAudio
FileName := I:\Apps\Software\meep_meep.wav (this file exists and is
available)
Shareable := False

Any clues?

Thanks,

Richard Stephens
Back to top
Mark Jacobs
Guest





PostPosted: Mon Mar 19, 2007 10:58 pm    Post subject: Re: TMediaPlayer and WAV files. Reply with quote



"Richard Stephens" <rick (AT) almsysinc (DOT) com> wrote in message
news:45fea740 (AT) newsgroups (DOT) borland.com...
Quote:
I migrated from Delphi 5 to Delphi 2006.


Did you perchance also upgrade to Vista? DRM is causing a lot of headaches.

Quote:
I cannot get the TMediaPlayer to play WAV files under Delphi 2006. This
worked fine under Delphi 2005, and I haven't changed anything but the
version of Delphi.

So, if you have XP running, then it must be the WAV files themsleves. What
format are they? Right-Click in explorer on the file and choose the
Properties option, Summary tab. What does it say about the WAV? Have you
changed your user access level?
--
Mark Jacobs
www.jacobsm.com
Back to top
Richard Stephens
Guest





PostPosted: Tue Mar 20, 2007 12:14 am    Post subject: Re: TMediaPlayer and WAV files. Reply with quote



Quote:
Did you perchance also upgrade to Vista? DRM is causing a lot of
headaches.

No upgrade. Am using XP Professional. I am the PC's administrator.

Quote:
What format are they?

PCM

Quote:
What does it say about the WAV?

Bit Rate: 88kpbs
Audio Sample Size: 8 bit
Channels: 1 (mono)
Audio Sample Rate: 11 kHz
Audio Format: PCM

Quote:
Have you changed your user access level?

No. Just went from Delphi 5 Enterprise to 2006 Enterprise.

This is just screwy. I can play any WAV file through the Windows Media
Player, including this one. Delphi 5 has no problems playing it. I even
deleted the component and re-set it up from scratch under Delphi 2006. Same
results.


Thanks.

Richard
Back to top
Richard Stephens
Guest





PostPosted: Sun Apr 01, 2007 10:01 pm    Post subject: Re: TMediaPlayer and WAV files. Reply with quote

Finally figured this out. Seems that the DeviceType was set to dtWaveAudio.
Changed it to dtAutoSelect and that fixed it. Weird.


"Richard Stephens" <rick (AT) almsysinc (DOT) com> wrote in message
news:45fee0f5$1 (AT) newsgroups (DOT) borland.com...
Quote:
Did you perchance also upgrade to Vista? DRM is causing a lot of
headaches.

No upgrade. Am using XP Professional. I am the PC's administrator.

What format are they?

PCM

What does it say about the WAV?

Bit Rate: 88kpbs
Audio Sample Size: 8 bit
Channels: 1 (mono)
Audio Sample Rate: 11 kHz
Audio Format: PCM

Have you changed your user access level?

No. Just went from Delphi 5 Enterprise to 2006 Enterprise.

This is just screwy. I can play any WAV file through the Windows Media
Player, including this one. Delphi 5 has no problems playing it. I even
deleted the component and re-set it up from scratch under Delphi 2006.
Same results.


Thanks.

Richard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.