QMedia
Movie track commands
|
|
| QM_GetTrackDuration(movieRef; trackID; trackDuration):error | |||
|
|
movieRef | Longint | Movie reference |
|
|
trackID | Longint | Track ID |
|
|
trackDuration | Longint | Track duration |
|
|
error | Longint | Error result |
Returns the duration of a track.
Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile or QM_NewMovieFromURL.
Parameter trackID is the ID of the track.
Parameter trackDuration receives the track's duration. The track's duration is expressed in the movie's time scale.
Example
`Get the duration of track ID $trackID of movie $movie C_LONGINT($duration) $err:=QM_GetTrackDuration ($movie;$trackID;$duration) |