Comments (6)
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.
(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.
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.
Thanks!
To be honest, I wasn't sure about the need for this one.
from sdl.
Related Issues (20)
- SDL_Event.key and kdevice does not return expected IDs? HOT 12
- testcamera does not work on emscripten HOT 2
- [Feature Request] Add Handheld and Custom device capability and feature support
- SDL_DestroyTexture leak memory wayland X11. HOT 2
- SDL3 Android SIGSEGV in `ANDROID_JoystickRumble` after `SDL_Quit` HOT 1
- testffmpeg poor performance HOT 11
- Memory leaks SDL_stack_alloc/SDL_stack_free HOT 4
- SDL return code -> SDL_bool? HOT 23
- [Windows 10] Most joystick events do not show up unless initalized with SDL_INIT_VIDEO HOT 1
- Clarify initial content of surfaces and textures HOT 1
- make src/libm a static library internal to SDL ? HOT 18
- [Android] mouse - avoid popping out system bars HOT 1
- Remove unused math code from MSVC and Xcode projects
- ios: infinite hang on SDL_malloc HOT 2
- Windows VC Linker error audio_async and sdl audio functions HOT 3
- Bug in SDL_DelayNS() HOT 2
- Game controller support matrix HOT 3
- DisplayModes for Android devices
- ffplay fails to restore window position correctly upon toggling 'maximize'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl.