Skip to content

Conversation

@j-lohuis
Copy link
Collaborator

@j-lohuis j-lohuis commented Sep 7, 2022

Added a optional multithreaded implementation to the SDL_mixer backend.
This reduces the latency between playing two sound buffers by computing the next buffer as the current buffer is playing.

The new multithreaded implementation is enabled by default for native applications but
the old singlethreaded implementation can be forced by defining SOUNDWAVE_USING_SDLMIXER_SINGLETHREAD and is used in emscripten by default.
To enable the multithreaded implementation in emscripten aswell, provide the -pthread during compilation and linking (https://emscripten.org/docs/porting/pthreads.html).

@js190
Copy link

js190 commented Sep 9, 2022

sweet, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants