I’m interested in using Babylon Native in iOS with a project that uses a WASM audio engine. Does Babylon Native support loading WASM?
Pinging @syntheticmagus / @bghgary
Yes, I believe so, but I haven’t tried this myself. As far as I can tell, the JavaScript virtual machines that we have so far all support WebAssembly automatically. I would expect WebAssembly to just work.
Thank you. Do you know where I can find more info on the Javascript virtual machines being used? (i.e. do they support AudioWorklet or ScriptProcessorNode, SharedArrayBuffer or Transferable, etc…)
The audio stuff is not a part of Javascript, but the Web Audio API. Right now, no, it is not a part. I was planning on making a plug-in for it. I got to the planning stage, but moved on to higher priority stuff.
Made a repo, which is now just basically a read me of the calls to be supported, and a scan of my design plan to put a wrapper around the LabSound repo.
LabSound does have the older ScriptProcessorNode. At the time I wrote the read me, I did not think I needed it, but now I am not so sure. If put in, it would probably be last though.
The virtual machines, I think are linked to in the Native read me.
Apple - JavaScriptCore
Android - JavaScriptCore or V8
Windows - Chakra or V8
This doesn’t help you answer the specifics though. For the most part, JavaScript VMs don’t provide any functionality past pure JS things. The Web APIs exposed to JavaScript in a browser is provided by the browser.
Thank you for the info.