media_tune(var handle,var volume,var rate,var balance)

Changes the volume, speed and audio balance of a media stream.

Parameters:

handle the stream handle that was returned by media_play or media_loop.
Volume the new volume (1..100), or 0 for no change. The overall media volume can be changed by midi_vol.
Rate the new playing speed or sound frequency in percent, or 0 for no change. For instance, give 100 for normal speed, 50 for slow motion or half frequency, or 200 for double speed or double frequency.
Balance the new tone balance (-100 .. +100), or 0 for no change. Negative values shift the sound towards the left speaker and positive values towards the right speaker.

Returns:

var = 0, if the file"string" can't be found.
var = handle of the multimedia file

Speed:

Medium

Example:

// Play"Silent.mpg" with half speed
media_tune(media_play("silent.mpg",NULL,0),0,50,0);

See also:

media_play, media_pause, media_playing, media_start, media_stop, media_layer, media_handle