Method SDL.Music()->set_volume()


Method set_volume

float set_volume(float vol)

Description

Sets the volume for music playback.

Parameter vol

The volume to set. This is a float value from 0.0 (silent) to 1.0 (full volume). Values above and below these limits will be clamped.

Returns

The previous volume setting.