Wow, this seems super useful, this seems to handle:
providing a JS surface for the webaudio API in an environment that doesn’t provide it for you (pretty much any JS environment that’s not a web browser)
implements all the NAPI glue code for connecting the JS class declarations to the LabSound components that need to be connected, pretty much all the stuff I attempted to scaffold via Sound Implementation by Drigax · Pull Request #794 · BabylonJS/BabylonNative · GitHub but packaged in a much more modular form.
I’d assume if we wanted to use this in Native we’d create a plugin that would initialize all the napi bindings defined here somehow…
The build system seems interesting, however. I assume that all of this is written for use as Node3D modules, rather than standalone libs. That definitely will complicate things.
I don’t think there’s any other plans to consume node3d modules in BabylonNative…
At the least if theres some solution to taking all this boilerplate and getting it to build as a standalone library we can consume in Native, it seems like most of the other C++ stuff regarding Napi->LabSound interaction seems mostly solved already here, though this is just a cursory glance hehe.
I’m sure @bghgary would be interested in seeing (and possibly evaluating) such a solution. I don’t think Node3D was ever considered as a solution for BabylonNative…