-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.UpdateAudioStream
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Update audio stream buffers with data NOTE 1: Only updates one buffer of the stream source: dequeue -> update -> queue NOTE 2: To dequeue a buffer it needs to be processed: IsAudioStreamProcessed()
| Parameter | Default Value | Note |
|---|---|---|
| stream | ||
| data |
None.
raylib.InitAudioDevice
stream = raylib.LoadAudioStream(44100, 32, 1)
raylib.PlayAudioStream stream
// each frame, when buffer needs refill:
if raylib.IsAudioStreamProcessed(stream) then
raylib.UpdateAudioStream stream, audioData
end if
raylib.UnloadAudioStream stream
raylib.CloseAudioDevice