Skip to content

Sound support #31

Open
Open

Description

@CedricGuillemet

crossplatform audio engine
https://github.com/jarikomppa/soloud
Do you know any other one?

Activity

  1. bghgary commented on Aug 20, 2019

    @bghgary
    Contributor
  2. CedricGuillemet commented on Oct 8, 2019

    @CedricGuillemet
    CollaboratorAuthor
  3. added
    help wanted
    on Apr 14, 2020
  4. chrisfromwork commented on Feb 26, 2021

    @chrisfromwork
    Contributor
  5. chrisfromwork commented on Mar 26, 2021

    @chrisfromwork
    Contributor
  6. chrisfromwork commented on Mar 26, 2021

    @chrisfromwork
    Contributor
  7. removed
    help wanted
    on Apr 15, 2021
  8. Drigax commented on Apr 20, 2021

    @Drigax
    Contributor

    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.

  9. CedricGuillemet commented on Apr 20, 2021

    @CedricGuillemet
    CollaboratorAuthor

    @Drigax Looks interesting for video playback support as well. I'm curious about the footprint on mobile.

  10. Drigax commented on Apr 27, 2021

    @Drigax
    Contributor
    <style> </style>
    Project Name Link To Project Does it implement an audio backend or directly interact with OS-included backends? Does it implement DSP Effects? Does it use a modular or node-based processing pipeline? What does it do? Windows/Win32 Windows/UWP Android MacOS iOS Linux License Notes
    Chromium https://source.chromium.org/chromium/chromium/src ✅ ✅ ✅ 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.
    SoLoud https://github.com/jarikomppa/soloud ❌ ✅ ❌ 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.
    libSDL https://github.com/libsdl-org/SDL ✅ ❌ ❌ Low level cross-platform I/O interface ✅ ❔ ✅ ✅ ✅ ✅ Zlib 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…
    Resonance Audio https://github.com/resonance-audio/resonance-audio ❌ ✅ ✅ Audio processing library with node graph and a wide library of built-in DSP effects ❔ ❔ ❔ ❔ ❔ ❔ Apache 2 This is a DSP middleware package. While it should support the functionality of WebAudio, it requires pulling in an audio backend implementation
    JACK https://github.com/jackaudio/jack2 ❌ ❌ ❌ 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.
    MiniAudio https://github.com/mackron/miniaudio#supported-platforms ✅ ⚠️ ❌ Single-file crossplatform audio I/O ✅ ❔ ✅ ✅ ✅ ✅ Public Domain OR MIT 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.
    libsoundio https://github.com/andrewrk/libsoundio ✅ ❌ ❌ Cross platform audio I/O library ✅ ❔ ❌ ✅ ❔ ✅ MIT This is a cross platform audio I/O library that interacts with a number of platform and 3rd party audio backends.
    portaudio https://github.com/PortAudio/portaudio ✅ ❌ ❌ Cross platform audio I/O library ✅ ✅ ❌ ✅ ❔ ✅ Custom, Permissive License This is a cross platform audio I/O library that interacts with a number of platform and 3rd party audio backends.
    libvlc https://wiki.videolan.org/LibVLC/ ✅ ✅ ✅ Cross platform media I/O library ✅ ✅ ✅ ✅ ✅ ✅ LGPLv2 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.
    LabSound https://github.com/LabSound/LabSound ✅ ✅ ✅ 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.
                               
                               
    Key:                          
    ❔ Not conclusive, need more information                        
    ✅ supported /included                        
    ❌ Not supported / not included                        
    ⚠️ Some support/some inclusion                        
  11. Drigax commented on Apr 27, 2021

    @Drigax
    Contributor

    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.

  12. Drigax commented on Apr 29, 2021

    @Drigax
    Contributor

    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.

  13. Drigax commented on May 14, 2021

    @Drigax
    Contributor

    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

  14. 8 remaining items

  15. FranticOwl commented on Nov 6, 2022

    @FranticOwl

    @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?

  16. bghgary commented on Nov 7, 2022

    @bghgary
    Contributor

    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

  17. rootVIII commented on Jan 7, 2023

    @rootVIII

    Would love to see audio functionality added to this project.. even if only for a few select targets/OSs.

  18. markgrossnickle commented on Nov 9, 2023

    @markgrossnickle

    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.

  19. matthargett commented on Feb 12, 2024

    @matthargett
    Contributor

    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)?

  20. ryantrem commented on Feb 16, 2024

    @ryantrem
    Member

    Love the idea of having community help getting this implemented! @bghgary thoughts on this? Could @matthargett pick up where Nick left off?

  21. bghgary commented on Feb 16, 2024

    @bghgary
    Contributor

    Let's check with @docEdub. He was looking at this at some point. Any thoughts @docEdub?

  22. CedricGuillemet commented on Feb 20, 2024

    @CedricGuillemet
    CollaboratorAuthor

    Valve Steam audio supports major platforms and is apache 2.0
    https://github.com/ValveSoftware/steam-audio

  23. docEdub commented on Feb 20, 2024

    @docEdub
    Contributor

    Love the idea of having community help getting this implemented! @bghgary thoughts on this? Could @matthargett pick up where Nick left off?

    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.

  24. removed their assignment
    on Apr 16, 2024
  25. astralarya commented on Jun 22, 2025

    @astralarya

    Any progress on this feature?

  26. docEdub commented on Jun 23, 2025

    @docEdub
    Contributor

    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 👍

  27. added a commit that references this issue on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions