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 Nov 16, 2026
·
4 revisions
Update sound buffer with new data from a RawData. The data format must match the sound's stream sampleSize and channels (by default 32-bit float, stereo); frameCount must be greater than 0 and not exceed the sound's frameCount
Parameters
Parameter
Default Value
Note
sound
data
frameCount
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