Movie Maker Timeline Control

GetTextClip Method

Description

Get audio clip information.

Syntax

Public Function GetAudioClip ( _
   ByVal trackIndex as integer, _
   ByVal clipIndex as integer, _
   ByVal filename as string, _
   ByVal clipStartTime as float, _
   ByVal clipStopTime as float, _
   ByVal mediaTime as float, _
   ByVal volume as float
)

 

Parameter

trackIndex
   0 - Transition Track
   1 - Video 1 Track
   2 - Video 2 Track
   3 - Image Track
   4 - Effect Track
   5 - Audio 1 Track
   6 - Audio 2 Track
   7 - Text Track

clipIndex
    the index of audio clip

filename
    return the path of audio/video file

clipStartTime
    return the startime of the clip on the timeline

clipStopTime
    return the stoptime of the clip on the timeline

mediaTime
    return the media start time of the clip on the timeline.

volume
    return the volume of the clip on the timeline.
 

Return Value

filename
    return the path of audio/video file

clipStartTime
    return the startime of the clip on the timeline

clipStopTime
    return the stoptime of the clip on the timeline

mediaTime
    return the media start time of the clip on the timeline.

volume
    return the volume of the clip on the timeline.

 

Example

Visual Basic Syntax
Dim strFilename As String
Dim iclipStart As Single
Dim iclipStop As Single
Dim imediaStarttime As Single
Dim ivolume As Single
TimelineControl1.GetAudioClip 5, 0, strFilename, iclipStart, iclipStop, imediaStarttime, ivolume