Property: WaveFileLen


Type:

 

Integer.

     

Properties:

 

ReadOnly, available only at run time.

     

Function:

 

Get the length of the current wave file. The length returned does not include the Wave file Header, which indicates format information.

     

Description:

 

The current wave file should exist before the execution of this method. The current wave file can be created by invoking the OpenWaveFile or NewWaveFile methods.

 

See also WavefilePos.

     

Sample Code In Visual Basic:

'The following code opens a wave file and seeks to position at the middle of it.

'It then starts playing the file from this position.

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