You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Parameters
Parameter
Default Value
Note
sound
data
sampleCount
Return value
None.
Notes
Example
raylib.InitAudioDevicesound=raylib.LoadSound("resources/beep.wav")
// replace the sound buffer with new raw audio data:raylib.UpdateSoundsound, newData, frameCountraylib.PlaySoundsoundraylib.UnloadSoundsoundraylib.CloseAudioDevice