Sound.setVolume

Sets the current volume as float in range 0.0 to 1.0

class Sound
static
void
setVolume
(
float value
,
int channel = -1
)

Parameters

value
Type: float

volume between 0.0 and 1.0.

channel
Type: int

-1 for all channels.

Meta