Method: SeekWaveFile
|
Function: |
Move the current position of the current wave file to a new position. |
|
|
Parameters: |
Position (As Long): The new position to move to. Position can be any value between 0 and the length of the wave file. Each Wave file has a header indicating the format of the file. This header is not included in the position. The WaveFileLen property returns the length of the file, without the header. The WaveFilePos property returns the current position in the file. |
|
| Description: |
Repositions the current Wave File. |
|
| Dependencies: |
The current wave file should exist before the execution of this method.The current wave file can be set by calling OpenWaveFile or NewWaveFile. |
|
| Events Raised: |
None |
|
Sample Code In Visual Basic:
'The following code opens a wave file and seeks to the middle of it,then begins playing it.
Sub VoiceAngel1_DigitDetected(LineIndex as integer ,sDigit as String )
If sDigit="1" Then
VoiceAngel1.CurrentLineIndex = LineIndex
VoiceAngel1.OpenWaveFile "Record.wav,0,0,0"
VoiceAngel1.SeekWaveFile VoiceAngel1.WaveFileLen/2
VoiceAngel1.StartPlaying 0,False
End if
End sub