-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.IsSoundValid
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Checks if a sound is valid (data loaded and buffers initialized)
| Parameter | Default Value | Note |
|---|---|---|
| sound |
| Condition | Return Value |
|---|---|
| (always) | number |
raylib.InitAudioDevice
sound = raylib.LoadSound("resources/beep.wav")
if raylib.IsSoundValid(sound) then print "Sound loaded successfully"
raylib.UnloadSound sound
raylib.CloseAudioDevice