-
Notifications
You must be signed in to change notification settings - Fork 4
From StreamCore To WebAudio
Vurv edited this page May 9, 2021
·
8 revisions
Because WebAudio is object oriented (We don't use indexes to run code) and much more advanced, this guide is here to help you convert your Streamcore
contraptions to WebAudio
# StreamCore
E:streamStart(1, "<URL>")
# WebAudio
local Stream = webAudio("<URL>")
Stream:setParent(E) # or use parentTo
Stream:play()
# StreamCore
streamVolume(1, 0.5)
# WebAudio
Stream:setVolume(50)
Stream:update()
# If we are not calling :play() or :pause(), the data is not immediately updated.
# We call :update() to manually send this new volume information to the client.
For everything WebAudio can do but StreamCore can't, see the Features
page