Geoff, This is easy for you to implement in your program using TMediaplayer. All you need to do is write out an empty wav file and then start recording over it. I wrote a program using TMediaplayer many years ago and that's how I did it. I used a wav editor to create an empty wav by file making a short recording in the wav resolution (8-bit or 16-bit, 11KHz, 22KHz, 44KHz) I wanted, then selected the entire contents of the file and did a "cut" on it. This left an empty wav file, which was very small. I then used a binary editor to examine the byte pattern in the file and wrote a small routine that opens a new file and writes that byte pattern to the file.
Glenn Lawler www.incodesystems.com -----Original Message----- From: Geoff Baxter [SMTP:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 7:09 PM To: advanced_delphi@yahoogroups.com Subject: [advanced_delphi] Using Mediaplayer component Hello, I wonder if anyone can help me with use of the Mediaplayer component. I need to create a small application that allows me to record spoken commentary from a microphone plugged into the normal audio port of the computer and then play it back. The Mediaplayer component does not seem to have much useful help associated with it in D7, and although I can open a file, play it, and even record over it, I cannot create the actual .WAV file in the first place or save the recorded material. The only way I can get it to work at all is by opening an existing WAV file. I would also like to access the MCE controls to be able to select which input to use, volume control etc. If anyone can help I would appreciate it. Geoff ------------------------------------ Yahoo! Groups Links