-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.LoadWaveFromMemory
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Load wave from memory buffer, fileType refers to extension: i.e. ".wav" WARNING: File extension must be provided in lower-case
| Parameter | Default Value | Note |
|---|---|---|
| fileType | ||
| fileData | ||
| dataSize |
| Condition | Return Value |
|---|---|
| (always) | map |
raylib.InitAudioDevice
data = file.loadRaw("resources/beep.wav")
wave = raylib.LoadWaveFromMemory(".wav", data)
if raylib.IsWaveValid(wave) then print "Wave loaded from memory"
raylib.UnloadWave wave
raylib.CloseAudioDevice