set_volume


Description:

public void set_volume (double val)

Sets the volume level of the stream as a percentage between 0 and 1.

This volume is a linear factor. For showing the volume in a GUI it might make sense to first convert from a different format. Volume sliders should usually use a cubic volume. See convert_volume.

Parameters:

this

Player instance

val

the new volume level, as a percentage between 0 and 1




2022 vala-language.org