Giter Club home page Giter Club logo

Comments (6)

icculus avatar icculus commented on September 13, 2024

So I haven't looked at this, but I can already say that every audio backend uses a thread by default unless it takes measures to provide its own...the emscripten backend uses a function that runs between iterations of the mainloop to get around this.

We could add an emscripten-specific similar thing for the dummy driver is this is useful, but it's probably better to just disable the test.

from sdl.

icculus avatar icculus commented on September 13, 2024

(Even the dummy backend needs to consume audio at a regular interval and provide silence on recording devices, so it still needs a thread.)

from sdl.

icculus avatar icculus commented on September 13, 2024

We could add an emscripten-specific similar thing for the dummy driver is this is useful, but it's probably better to just disable the test.

This is fixed now, as of d118af5. Beyond the test, there are probably some small special cases where it's useful for people to be able to build Emscripten builds with only dummy audio, or for a user to override a page with ?SDL_AUDIO_DRIVER=dummy on the URL, so I plugged this in.

from sdl.

madebr avatar madebr commented on September 13, 2024

Thanks!

To be honest, I wasn't sure about the need for this one.

from sdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.