VideoEdit Gold ActiveX Control

AddAudioWithSlowMotion Method

Description

Add the audio to timeline and then add fast motion effect. If the strFile is the video file, it will extract audio stream and add to timeline.You  may add this effect on preview or save to another video formats.

 

Syntax

Public Function AddAudioWithSlowMotion ( _
   ByVal strFile as string, _
   ByVal iAudioStart as double, _
   ByVal iAudioStop as double, _
   ByVal iFastMotionRate as double
) As Boolean

 

Parameter

strFile
    the file path of video file

iVideoStart
    the start time of audio time you want extract

iVideoStop
    the end time of audio time you want extract

iSlowMotionRate
    the value of slow motion rate, the rangle from (0.1 to 8.0).
0.1 - about add slow motion rate 10%
1.0 - about add slow motion rate 100%

Return Value

Return true - successful
Return false - Failed

 

Example

Visual Basic Syntax

VideoEdit1.VideoSampleSize = 24
VideoEdit1.InitControl
VideoEdit1.AddVideoWithSlowMotion "c:\video1.mpg", 0, 10, 0, 0, 2, 0.5
VideoEdit1.AddAudioWithSlowMotion "c:\video1.mpg", 0, 10, 2, 0.5
VideoEdit1.Preview