QMedia
![]() |
![]() ![]() |
QM_SetTrackVolume(movieRef; trackID; trackVolume):error | |||
![]() |
movieRef | Longint | Movie reference |
![]() |
trackID | Longint | Track ID |
![]() |
trackVolume | Longint | Track volume |
![]() |
error | Longint | Error result |
Changes the sound volume 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 trackVolume specifies the track's sound volume. It must be in the range of -255...255. A value of 0 means no sound at all. Negative values also mute the track, but they preserve the absolute sound volume value.
Example
`Set the volume of track ID $trackID of movie $movie to maximum C_LONGINT($volume) $volume:=255 $err:=QM_SetTrackVolume ($movie;$trackID;$volume) |
Related commands
QM_GetTrackVolume | Returns the track's sound volume. |