Skip to content

raylib.IsSoundPlaying

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Check if a sound is playing

Parameters

Parameter Default Value Note
sound

Return value

Condition Return Value
(always) number

Notes

Example

raylib.InitAudioDevice
sound = raylib.LoadSound("resources/beep.wav")
raylib.PlaySound sound
print "Sound playing: " + raylib.IsSoundPlaying(sound)
raylib.UnloadSound sound
raylib.CloseAudioDevice

Clone this wiki locally