Skip to content

raylib.SetSoundVolume

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Set volume for a sound

Parameters

Parameter Default Value Note
sound
volume 1.0

Return value

None.

Notes

Example

raylib.InitAudioDevice
sound = raylib.LoadSound("resources/beep.wav")
raylib.SetSoundVolume sound, 0.5
raylib.PlaySound sound
raylib.UnloadSound sound
raylib.CloseAudioDevice

Clone this wiki locally