Also see Sound Streaming Manual
This example shows how to stream sounds from either the archive (the base game bundle) or the web.
For supporting loading from the web, start a web server where the files uner the web folder is available.
E.g. starting a local server: Note: For full features, the serer should support:
- Ranged requests (i.e. returning 206)
- ETag (i.e. returning 304)
macOS - install:
$ brew install http-server
macOS - run:
$ (cd sounds && http-server -p 8000)
You can of course also change the url in main.script, to something of your choosing (defaults to http://localhost:8000)
Credits:
-
mary-had-a-little-lamb-loop.ogg CC0 by punisherdan
-
Other ogg/wav files from