QMedia Movie track commands

QM_GetTrackVolume

QM_GetTrackVolume(movieRef; trackID; trackVolume):error
movieRef Longint Movie reference
trackID Longint Track ID
trackVolume Longint Track volume
error Longint Error result

Returns 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 receives the track's sound volume. The sound volume is in the range of -255...255. Only positive values produce sound.

Example

  `Get the volume of track ID $trackID of movie $movie
 
C_LONGINT($volume)
 
$err:=QM_GetTrackVolume ($movie;$trackID;$volume)
 
 

Related commands

QM_SetTrackVolume Sets the track's sound volume.

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