Skip to content

raylib.IsSoundValid

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Checks if a sound is valid (data loaded and buffers initialized)

Parameters

Parameter Default Value Note
sound

Return value

Condition Return Value
(always) number

Notes

Example

raylib.InitAudioDevice
sound = raylib.LoadSound("resources/beep.wav")
if raylib.IsSoundValid(sound) then print "Sound loaded successfully"
raylib.UnloadSound sound
raylib.CloseAudioDevice

Clone this wiki locally