You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may be overkill for our needs, (we also may want to consider the implications of its license) but seems to have robust support for 3d sound, media streaming, and filter effects if we choose to implement a subset of WebAudio.
Full browser implementation. Includes implementations for WebAudio API with platform audio backends
✅
✅
✅
✅
✅
✅
This is our gold standard (because it pretty much is the standard.) Supports all the funtionality of WebAudio without additional dependencies, and works as a full multimedia backend.
Portable audio processing library with extensible backend support
❔
❔
❔
❔
❔
❔
Zlib
This isn't necessarily an all-in-one solution, as it relies on pulling in an audio backend as a dependency. However it has a number of audio effects implemented to support the subset of WebAudio that we need to implement.
This is more than just a cross platform audio backend (and interface to other desired backends), this library aims to solve multiple cross platform I/O issues such as input/haptics, graphics, sensors, file system access, etc…
Audio server that allows for inter-process audio routing.
❔
❔
❔
❔
❔
❔
This isn't an audio processing engine, or backend. JACK is an audio server that allows audio to be sent between processes ex: sending audio from one DAW to another that doesn't explicitly support each other. This doesn't seem useful for this usecase, but this is useful to list so its not misconstrued.
This is a minimalist, single file audio engine with built in support for OS-shipped backends (DirectSound, WASAPI, CoreAudio, ALSA, Aaudio, etc…) There are some DSP effects included as well.
This is a cross platform media player, with support for network streaming of media, as well as local playback. Support for simultaneous playing of one-shot sounds are not known, given the nature of the full application. This does have directly plug into platform audio and video backends.
WebAudio Port that uses libnyquist for DSP and miniaudio as a backend
✅
❔
✅
✅
✅
✅
BSD
This project began as a port of WebKit's WebAudio implementation. Some 3rd party solutions are used for audio processing and backend, namely libnyquist and miniaudio.
I've spent the past few days researching various popular audio solutions, and have tabulated some of their qualities into an easy to digest chart. This should allow us to compare solutions/a set of solutions to see what direction we want to go with regarding incorporating existing audio projects. The chart above will continue to be populated as I look at more projects.
Currently we are still investigating the feasibility of incorporating Chromium build artifacts that contain WebAudio, and the Chrome media system libraries and dependencies. Ashu Tatake has taken the first steps in this approach.
@ryantrem had a very interesting concern regarding this first option, Apple has been known to inspect and remove apps that contain Chromium source. We should look into which apps were known to be removed for this reason, if there was any justification provided, and whether Apple has a clear policy on whether it is a blanket ban on any chromium-derived binaries, or specific parts of Chromium which are not allowed.
I'll follow up by investigating this as well.
EDIT: I'll leave this comment up, in case this becomes a future concern again, so far I can only see this issue with Electron as related: electron/electron#20027
since Electron was using Apple internal APIs, violating the TOS. Though we should make sure there are no similar problems with leveraging the Chromium source as well.
Put shortly, it seems best to start with the most capable single solution and explore its feasibility before looking at combinations+custom solutions.
Starting with existing implementations in browsers, Chromium and Firefox's implementation of WebAudio come with too much additional work to get the codebases in a shape where integration would be trivial, as well as questionable build processes.
I am now investigating the feasibility of LabSound, another WebAudio implementation that appears to be "standalone" in its build process and consumption. A large plus is that the project was created to use CMake as its build system, which suggest that it should not be too difficult to integrate into BabylonNative's build system
@bghgary, more than a year later and this is still an open issue?
Is there any actual plan to build support for Babylon Native, so that frameworks such as React-Native can simply use the sound API from Babylon to add audio to scenes?
Unfortunately, sound support is not actively being worked on right now. We attempted to start this a couple of times, but they both didn't work out for various reasons. cc @docEdub
Reacted by Lucas Gomes
Reacted by Lucas Gomes, James and Paolo William Carrara
As we approach the next phase of our product, which includes bringing Babylon React Native to visionOS, Spatial Audio is a need that we have. What can we do at Rebecker Specialties to help close this key gap that also affects using Babylon React Native on AOSP-based headsets (Pico 4, HTC Vive XR/Focus, etc)?
Yes, thanks for your interest! The new audio engine for Bablyon.js has been released and one of its design requirements is that it be easy to implement in BabylonNative. This is a big step forward!
That being said, I don't have the bandwidth to implement BabylonNative audio, yet, so help from the community would be much appreciated!
For anybody else reading this, comments and a +1 on the issue description help us determine priorities so smash that thumbs-up button 👍 on the first comment 👍
Activity
bghgary commentedon Aug 20, 2019
https://github.com/resonance-audio/resonance-audio
CedricGuillemet commentedon Oct 8, 2019
Some more tiny libraries here
https://github.com/nothings/single_file_libs#audio
bghgary commentedon Feb 26, 2021
From forum post: https://forum.babylonjs.com/t/babylonnative-questions/9716
https://github.com/LabSound/LabSound
chrisfromwork commentedon Feb 26, 2021
some real time filter libraries:
https://github.com/vinniefalco/DSPFilters
https://github.com/berndporr/iir1
chrisfromwork commentedon Mar 26, 2021
https://github.com/andrewrk/libsoundio
https://github.com/PortAudio/portaudio
chrisfromwork commentedon Mar 26, 2021
https://github.com/cycfi/q
Drigax commentedon Apr 20, 2021
We may also want to consider:
https://www.videolan.org/vlc/libvlc.html
It may be overkill for our needs, (we also may want to consider the implications of its license) but seems to have robust support for 3d sound, media streaming, and filter effects if we choose to implement a subset of WebAudio.
CedricGuillemet commentedon Apr 20, 2021
@Drigax Looks interesting for video playback support as well. I'm curious about the footprint on mobile.
Drigax commentedon Apr 27, 2021
Drigax commentedon Apr 27, 2021
I've spent the past few days researching various popular audio solutions, and have tabulated some of their qualities into an easy to digest chart. This should allow us to compare solutions/a set of solutions to see what direction we want to go with regarding incorporating existing audio projects. The chart above will continue to be populated as I look at more projects.
Drigax commentedon Apr 29, 2021
Currently we are still investigating the feasibility of incorporating Chromium build artifacts that contain WebAudio, and the Chrome media system libraries and dependencies. Ashu Tatake has taken the first steps in this approach.
@ryantrem had a very interesting concern regarding this first option,
Apple has been known to inspect and remove apps that contain Chromium source.We should look into which apps were known to be removed for this reason, if there was any justification provided, and whether Apple has a clear policy on whether it is a blanket ban on any chromium-derived binaries, or specific parts of Chromium which are not allowed.I'll follow up by investigating this as well.
EDIT: I'll leave this comment up, in case this becomes a future concern again, so far I can only see this issue with Electron as related:
electron/electron#20027
since Electron was using Apple internal APIs, violating the TOS. Though we should make sure there are no similar problems with leveraging the Chromium source as well.
Drigax commentedon May 14, 2021
I've written a blog post here, outlining the plan moving forward for this feature:
https://babylonjs.medium.com/audio-in-babylon-native-charting-the-way-c6bc6d5c0d74
Put shortly, it seems best to start with the most capable single solution and explore its feasibility before looking at combinations+custom solutions.
Starting with existing implementations in browsers, Chromium and Firefox's implementation of WebAudio come with too much additional work to get the codebases in a shape where integration would be trivial, as well as questionable build processes.
I am now investigating the feasibility of LabSound, another WebAudio implementation that appears to be "standalone" in its build process and consumption. A large plus is that the project was created to use CMake as its build system, which suggest that it should not be too difficult to integrate into BabylonNative's build system
8 remaining items
FranticOwl commentedon Nov 6, 2022
@bghgary, more than a year later and this is still an open issue?
Is there any actual plan to build support for Babylon Native, so that frameworks such as React-Native can simply use the sound API from Babylon to add audio to scenes?
bghgary commentedon Nov 7, 2022
Unfortunately, sound support is not actively being worked on right now. We attempted to start this a couple of times, but they both didn't work out for various reasons. cc @docEdub
rootVIII commentedon Jan 7, 2023
Would love to see audio functionality added to this project.. even if only for a few select targets/OSs.
markgrossnickle commentedon Nov 9, 2023
No ability to play audio seems like a deal breaker for many game projects. It's why were are going to go with another platform fwiw.
matthargett commentedon Feb 12, 2024
As we approach the next phase of our product, which includes bringing Babylon React Native to visionOS, Spatial Audio is a need that we have. What can we do at Rebecker Specialties to help close this key gap that also affects using Babylon React Native on AOSP-based headsets (Pico 4, HTC Vive XR/Focus, etc)?
ryantrem commentedon Feb 16, 2024
Love the idea of having community help getting this implemented! @bghgary thoughts on this? Could @matthargett pick up where Nick left off?
bghgary commentedon Feb 16, 2024
Let's check with @docEdub. He was looking at this at some point. Any thoughts @docEdub?
CedricGuillemet commentedon Feb 20, 2024
Valve Steam audio supports major platforms and is apache 2.0
https://github.com/ValveSoftware/steam-audio
docEdub commentedon Feb 20, 2024
I was able to hack together a BabylonNative audio implementation last year based on Nick's work. Here's the blog post I wrote afterward: https://medium.com/@babylonjs/moving-the-ball-forward-on-babylonnative-audio-44d54de019bc.
astralarya commentedon Jun 22, 2025
Any progress on this feature?
docEdub commentedon Jun 23, 2025
Yes, thanks for your interest! The new audio engine for Bablyon.js has been released and one of its design requirements is that it be easy to implement in BabylonNative. This is a big step forward!
That being said, I don't have the bandwidth to implement BabylonNative audio, yet, so help from the community would be much appreciated!
For anybody else reading this, comments and a +1 on the issue description help us determine priorities so smash that thumbs-up button 👍 on the first comment 👍
fix issue #31: The body of constexpr function not a return-statement
Expose normalized transport-error detail (ErrorString/ErrorSymbol/Err…
Make Abort() interrupt the libcurl and NSURLSession transports (#34)