VideoEdit Gold ActiveX Control

AddAudioWithTran Method

Description

Add Audio files into timeline if you called AddVideoWithTran before. Make the audio and video sync.

Syntax

Public Function AddAudioWithTran( _
   ByVal strFile as string, _
   ByVal iAudioStart as double, _
   ByVal iAudioStop as double, _
   ByVal iTranDuration as double
) As Boolean

 

Parameters

strFile
    the file path of audio file

iAudioStart
    the start time of video time you want extract

iAudioStop
    the end time of video time you want extract

iTranDuration
 the duration of tranistion , it must same as AddVideoWithTran method 's transitions duration.
 

Return Value

Return true - successful
Return false - Failed
 

Example

[Visual Basic Syntax]
VideoEdit1.VideoSampleSize = 24
VideoEdit1.InitControl
VideoEdit1.AddVideoWithTran "c:\video1.mpg", 0, 10, 0, 0, 2
VideoEdit1.AddAudioWithTran "c:\video1.mpg", 0, 10, 2
VideoEdit1.AddVideoWithTran "c:\video2.mpg", 0, 10, 0, 1000, 2
VideoEdit1.AddAudioWithTran "c:\video2.mpg", 0, 10, 2
VideoEdit1.AddVideoWithTran "c:\video3.mpg", 0, 10, 0, -1, 2
VideoEdit1.AddAudioWithTran "c:\video3.mpg, 0, 10, 0
VideoEdit1.Preview