QMedia
![]() |
![]() ![]() |
QM_GetTrackUsage(movieRef; trackID; trackUsage):error | |||
![]() |
movieRef | Longint | Movie reference |
![]() |
trackID | Longint | Track ID |
![]() |
trackUsage | Longint | Track usage flags |
![]() |
error | Longint | Error result |
Returns the track's usage in the movie. A track can be used in the movie, in the movie's preview, poster, or any combination in these.
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 trackUsage receives the track's usage in the movie. The trackUsage is the combination(with addition or bitwise "or") of any of the following constants.
qm_TrackUsedInMovie | 2 | Track is used in movie |
qm_TrackUsedInPreview | 4 | Track is used in movie preview |
qm_TrackUsedInPoster | 8 | Track is used in poster frame |
Example
`Get the usage of track ID $trackID of movie $movie C_LONGINT($trackUsage) $err:=QM_GetTrackUsage ($movie;$trackID;$trackUsage) |
Related commands
QM_SetTrackUsage | Specifies the track's usage in the movie. |