Description This component lets you record any sound just using the functions BeginRecording and StopRecording. It uses MCI multimedia functions and the output format follows WAV PCM format. (c) Xavier Cirac. All rights reserved mail: Register Why should I register this component? First of all, this component is shareware, so if after you have tried it, you like it or you are going to use it, you have to register it. Otherwise you will be violating the copyright laws. Once you have registered it, you will be (legally) able to use it (even in commercial programs). Besides, you should think that this component has been developed by a Delphi programmer like you, and nobody likes to work without any result (in this case, your little fee), so if you register it you will make me a happier person (and you will be as well, because you will do the correct thing). The fee for this component is only 30 US $. There are two ways to register TWavRec VCL component: 1.- Via online registration : You can register this component from Qwerks Shareware Registration Services. Transactions are via Credit Card with the option of making the purchase over a secure server, via an U.S. tool free phone or fax. To do it this way please visit TWavRec web page : http://www.waveflow.com/vcl.htm 2.-Filling the Registration Formrf and sending me the money (30 $US) to the next postal address: Xavier Cirac Vidal Batlles , 4 Premia de Mar , 08330 Barcelona SPAIN Once I get your registration mail I will e-mail you with the source code and a sample demo (also with source code). Registration Form Please Print the next form and fill in the information (if applicable) when you send me the registration letter: Company: _________________________________________ Name: _________________________________________ E-Mail: _________________________________________ Address: _________________________________________ City: _________________________________________ State/Province: ______________________________________ Country: _________________________________________ Optional Where did you find TWavRec? _____________________________________________________ What are you using TWavRec for? _____________________________________________________ Properties Filename: This is the name of the output sound file. (i.e: c:\mysound.wav) Showerror: This property lets you choose if the component is going to show its own error messages. WAVFormat: Format of the output sound file. You only have to specify 3 characteristics of the format (instead of all the variables that has the class TWaveFormatEx): -Channels: Number of channels (Mono=1, Stereo=2). -BitsPerSample: The number of bits per sample of the output sound file. It can only be 8 or 16. -SamplesPerSec: The number of samples per second of the output sound file (the frequency). Usually: 11025, 22050, 44100 (CD). Name: Name of the component Methods Create: Creates the component (Constructor) BeginRecording: Begins the recording of the sound file using the format specified in the WAVFormat property. It has no parameters. StopRecording: Stops the recording of the sound file (you have to call the function BeginRecording previously). It has no parameters. A simple Example: procedure TForm1. ButtonRecordClick(Sender: TObject); begin wavrec1.showerror:=true; wavrec1.WAVformat.channels:=Mono; wavrec1.WAVformat.SamplesPerSec:=22050; wavrec1.WAVformat.BitsPerSample:=8; wavrec1.BeginRecording; //That's all !! end; procedure TForm1. ButtonStopClick(Sender: TObject); begin wavrec1.StopRecording; //That's all !! end; Events OnError :Happens if an error occurs OnBegin :It is produced after calling the function BeginRecording; OnStop : It is produced after calling the function StopRecording; Installation To Install TWavRec you have to do the next steps: If you have Delphi 6.0 you only have to install the TWavRec package doing EXACTLY: -Component Install Packages Add ...and Browse for the WavRecpk6.bpl file Check the option "Build with runtime packages" (Must be enabled) ...and Browse for the WavRecpk6.dcp file Check the option "default" (Must be enabled) OK -Copy the file WavRecpk6.bpl to your Windows\System If you have Delphi 5.0 you only have to install the TWavRec package doing EXACTLY: -Component Install Packages Add ...and Browse for the WavRecpk5.bpl file Check the option "Build with runtime packages" (Must be enabled) ...and Browse for the WavRecpk5.dcp file Check the option "default" (Must be enabled) OK -Copy the file WavRecpk5.bpl to your Windows\System If you have Delphi 4.0 you only have to install the TWavRec package doing EXACTLY: -Component Install Packages Add ...and Browse for the WavRecpk4.bpl file Check the option "Build with runtime packages" (Must be enabled) ...and Browse for the WavRecpk4.dcp file Check the option "default" (Must be enabled) OK -Copy the file WavRecpk4.bpl to your Windows\System If you have Delphi 3.0 you only have to install the TWavRec package doing EXACTLY: -Component Install Packages Add ...and Browse for the WavRecpk.dpl file Check the option "Build with runtime packages" (Must be enabled) ...and Browse for the WavRecpk.dcp file Check the option "default" (Must be enabled) OK -Copy the file WavRecpk.dpl to your Windows\System If you have Delphi 2.0 you will have to do: -Component -Install -Add (and Browse for the WavRec.dcu file) If you have C++Builder 1.0 you will have to do: -Component -Install -Add (and Browse for the WavRec.obj file) Note: Remember that you have to install TWavRec to a directory accessible by Delphi (check the Delphi menu option Tools/Environment Options/Library/Library Path). If the directory where you have installed TWavRec is not listed there try to add it or to copy TWavRec files to any of the listed directories. ...and that's all. If setup succeed you will see a new palette called UsefulTools (if you are looking for more useful tools please visit http://www.waveflow.com/vcl.htm).