QMediaLight Movie prefs commands

QM_GetPreferredVolume

QM_GetPreferredVolume(movieRef; prefVolume):error
movieRef Longint Movie reference
prefVolume Longint Preferred sound volume
error Longint Error result

Returns the preferred sound volume of a movie.

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

Example

  `Get the preferred volume of movie $movieRef
 
C_LONGINT($prefVolume)
 
$error:=QM_SetPreferredVolume ($movieRef;$prefVolume)
 

QMediaLight © Escape OE
Generated by QDoc 2.8 on Thu, Oct 8, 2009 18:08:39