Skip to content

raylib.LoadSound

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Load sound from file NOTE: The entire file is loaded to memory to be played (no-streaming)

Parameters

Parameter Default Value Note
fileName

Return value

Condition Return Value
(always) map

Notes

Example

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

Clone this wiki locally