Thread View: borland.public.cppbuilder.multimedia
4 messages
4 total messages
Started by Anthony
Fri, 10 Nov 2006 12:45
TMediaPlayer is inherited from Sound Recorder included in Win XP SP2?
Author: Anthony
Date: Fri, 10 Nov 2006 12:45
Date: Fri, 10 Nov 2006 12:45
27 lines
1973 bytes
1973 bytes
Hi all, As you may know, Sound Recorder in Accessories Program group provided by Win XP is capable of recording .mp3 file directly from wav format by using "Properties->Convert Now->Choose MPEG Layer-3->Ok". I thought TMediaPlayer is from the Sound Recorder provided by Win XP. However, I don't know how to run the above job in programming because there is only one option in TMediaPlayer which is dtAutoSelect and bringing PCM format file. How can I do this job thru TMediaPlayer? Or should I import the proper ActiveX control provided by Sound Recorder in Win XP? Actually I was searching for this ActiveX control in Delphi 7 IDE but I couldn't find this in the list. How can I do the same job in Delphi with the default components or ActiveX control? Please tell me your experience. It would be greatly appreciated. Anthony
Re: TMediaPlayer is inherited from Sound Recorder included in Win XP SP2?
Author: Remy Lebeau (TeamB)
Date: Fri, 10 Nov 2006 18:30
Date: Fri, 10 Nov 2006 18:30
31 lines
1822 bytes
1822 bytes
"Anthony" <anthony_nyc@hotmail.com> wrote in message news:1163162752.562534.209250@h48g2000cwc.googlegroups.com... > I thought TMediaPlayer is from the Sound Recorder provided by Win XP. It is not. What would give you that idea? > However, I don't know how to run the above job in programming > because there is only one option in TMediaPlayer which is dtAutoSelect > and bringing PCM format file. There is no way to do what you are asking for with TMediaPlayer. > How can I do this job thru TMediaPlayer? You cannot. > Or should I import the proper ActiveX control provided by Sound > Recorder in Win XP? Sound Recorder does not expose an ActiveX control of its own. > How can I do the same job in Delphi with the default components > or ActiveX control? You will have to find a third-party library to do what you need. Or code to the Win32 Multimedia API or DirectX API yourself. Gambit
Re: TMediaPlayer is inherited from Sound Recorder included in Win XP SP2?
Author: Michel Leunen
Date: Fri, 10 Nov 2006 20:30
Date: Fri, 10 Nov 2006 20:30
16 lines
1425 bytes
1425 bytes
Anthony wrote: > How can I do this job thru TMediaPlayer? You can't. Look here for a way to convert wav to mp3: http://www.leunen.com/cbuilder/wav2mp3.html Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Re: TMediaPlayer is inherited from Sound Recorder included in Win XP SP2?
Author: Mark Jacobs
Date: Mon, 13 Nov 2006 14:22
Date: Mon, 13 Nov 2006 14:22
31 lines
2553 bytes
2553 bytes
Anthony wrote: > However, I don't know how to run the above job in programming because > there is only one option in TMediaPlayer which is dtAutoSelect and > bringing PCM format file. > > How can I do this job thru TMediaPlayer? You can record using TMediaPlayer and I have a working application at http://jacobsm.com/mjsoft.htm#mjplyr which is a TMediaPlayer-based media player. It can record using codecs on your PC, but the MP3 ones seem to cause a problem when used to record. However, if you use the OGG codecs ( http://jacobsm.com/oggvorbisacm.zip ) you can record and I reckon the quality is better for the same level of compression. TMediaPlayer has a method StartRecording() which assumes you have set up a file for recording by setting up the header prior to calling this method. Whatever is in the file is appended to once recording starts. Calling TMediaPlayer->Stop() followed by TMediaPlayer->Save() will then store the sound into the file. Setting up the header part of this file is the tricky bit, and I tend to use WAV headers as these are a bit easier to handle. Consequently, MJPlayer recordings are all in WAV format but internally compressed and decompressed using the codec you chose when you created the file. I can record OGG files of radio shows which are 24 hours long and yet take up only 150 MBytes. -- To be aware is to care. - Mark Jacobs DK Computing http://www.dkcomputing.co.uk
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads