Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreaded implementation added to SDL_mixer backend #39

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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.

2 participants