-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.UpdateSound
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Update sound buffer with new data PARAMS: [data], format must match sound.stream.sampleSize, default 32 bit float - stereo PARAMS: [frameCount] must not exceed sound.frameCount
| Parameter | Default Value | Note |
|---|---|---|
| sound | ||
| data | ||
| sampleCount |
None.
raylib.InitAudioDevice
sound = raylib.LoadSound("resources/beep.wav")
// replace the sound buffer with new raw audio data:
raylib.UpdateSound sound, newData, frameCount
raylib.PlaySound sound
raylib.UnloadSound sound
raylib.CloseAudioDevice