QMedia Movie properties commands

QM_SetSoundVolume

QM_SetSoundVolume(movieRef; soundVolume):error
movieRef Longint Movie reference
soundVolume Longint Sound volume
error Longint Error result

Sets the movie's sound volume.

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 soundVolume specifies the movie'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 movie, but they preserve the absolute sound volume value.

Example

  `Set the sound volume of movie $movieRef to maximum
 
$error:=QM_SetSoundVolume ($movieRef;255)
 

Related commands

QM_GetSoundVolume Returns the movie's sound volume.

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