Hello everyone, last week a worked a bit with Babylon Native and created a working PR with the progress.
For me, not having audio is a huge blocker so I worked with LLMs to add a simplified implementation using miniaudio to cover the minimal API required by Babylon.js.
I apologize before hand for the vibe coded code but I assure you I tested thoroughly.
In case you find this interesting please take a look: Add partial support to Audio through Miniaudio by yuripourre · Pull Request #1765 · BabylonJS/BabylonNative · GitHub
3 Likes
Thanks @yuripourre for the contribution. Since this is a big PR, it will take a bit of time for us to review it. We also need to decide whether the miniaudio dependency is the right choice. We’ll get back to you as soon as possible.
Of course, I completely understand.
The PR do not cover all the Web Audio API, it only implements what Babylonjs needs.
I chose miniaudio because of the license (Public Domain or MIT) and wide support of backends: alsa, pulse, etc.
My goal was to see one of my webxr games running native on an Oculus Quest device so I didn’t optimize or refactor the code after done.
Looking forward to seeing it merged or any other audio solution on BabylonNative.