QMedia Movie track commands

QM_SetTrackOffset

QM_SetTrackOffset(movieRef; trackID; trackOffset):error
movieRef Longint Movie reference
trackID Longint Track ID
trackOffset Longint Track offset
error Longint Error result

Changes the starting offset of a track. The track offset is the duration of the empty space at the beginning of the track. Changing the track's offset also affects the track's duration.

Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile.

Parameter trackID is the ID of the track.

Parameter trackOffset specifies the track's offset and must be expressed in the movie's time scale.

Example

  `Set the offset of track ID $trackID of movie $movie to 5 seconds
 
C_LONGINT($timeScale)
$error:=QM_GetTimeScale ($movieRef;$timeScale)
 
C_LONGINT($offset)
$offset:=$timeScale*5
 
$err:=QM_SetTrackOffset ($movie;$trackID;$offset)
 
 

Related commands

QM_GetTrackOffset Returns the track's offset.

QMedia © Escape OE
Generated by QDoc 2.8 on Thu, Nov 24, 2011 18:41:09