Method: StartRecording


Function:

 

Start recording .

     

Parameters:

 

nDevice: The device to use for recording.

 

0=Record from Telephony line.

1=Record from Sound Card.

 

bGetWaveData: indicates whether to obtain wave data for display while recording is proceeding.

 

TRUE=OnWaveData event is raised when the wave buffer fills. You can use this to display the wave while recording.

FALSE=OnWaveData event is not raised. This uses less resource.

     

Description:

 

The current wave file need not exist before the execution of this method . The current wave file can be created by calling OpenWaveFile or NewWaveFile . Stop can be used to stop playing.

     

Dependencies:

 

None.

     

Events Raised:

 

OnWaveData (if bGetWaveData is TRUE. See above.)

     

Sample Code In Visual Basic:

'The following code starts recording after the connection of the call.

Sub VoiceAngel1_Connected(LineIndex as integer ,fIncoming as boolean )

 VoiceAngel1.CurrentLineIndex = LineIndex

 VoiceAngel1.NewWaveFile "Record.wav"  

 VoiceAngel1.StartRecording 0,false

End sub