| View previous topic :: View next topic |
| Author |
Message |
Richard Stephens Guest
|
Posted: Mon Mar 19, 2007 8:08 pm Post subject: TMediaPlayer and WAV files. |
|
|
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
|
Posted: Mon Mar 19, 2007 10:58 pm Post subject: Re: TMediaPlayer and WAV files. |
|
|
"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
|
Posted: Tue Mar 20, 2007 12:14 am Post subject: Re: TMediaPlayer and WAV files. |
|
|
| 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
|
Posted: Sun Apr 01, 2007 10:01 pm Post subject: Re: TMediaPlayer and WAV files. |
|
|
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 |
|
 |
|