Skip to content

raylib.LoadSoundAlias

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Clone sound from existing sound data, clone does not own wave data NOTE: Wave data must be unallocated manually and will be shared across all clones

Parameters

Parameter Default Value Note
source

Return value

Condition Return Value
(always) map

Notes

Example

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

Clone this wiki locally