Skip to content

[ports] SDL3_mixer 3.2.0#26571

Open
onesixromcom wants to merge 12 commits intoemscripten-core:mainfrom
onesixromcom:sdl3-mixer-port
Open

[ports] SDL3_mixer 3.2.0#26571
onesixromcom wants to merge 12 commits intoemscripten-core:mainfrom
onesixromcom:sdl3-mixer-port

Conversation

@onesixromcom
Copy link
Copy Markdown

Simple port of SDL3_mixer with only WAV format available.
Test added.

@onesixromcom
Copy link
Copy Markdown
Author

SDL3 update was moved to another PR

@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented Mar 28, 2026

SDL3 update was moved to another PR

Thanks!

@onesixromcom onesixromcom changed the title [port] SDL3_mixer 3.2.0 [ports] SDL3_mixer 3.2.0 Mar 29, 2026
@onesixromcom
Copy link
Copy Markdown
Author

tests were added:

test/runner other.test_sdl3_mixer
test/runner browser.test_sdl3_mixer_music

sbc100 pushed a commit that referenced this pull request Mar 31, 2026
SDL3 update is needed for SDL3_mixer port

See #26571

emscripten_set_main_loop(sound_loop_then_quit, 0, 1);

return 0;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use 2-space indentation. Maybe run this through clang-format? Or is this file designed to mirror an existing one?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, fixed. I've copied the style from another c file.
btw there are lots of c files with 4 spaces and tab indents..

@onesixromcom onesixromcom marked this pull request as ready for review April 2, 2026 18:46
if formats != '':
libname += '-' + formats
if settings.PTHREADS:
libname += '-mt'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this library actually use threading (or atomics)?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've copied this part from sdl2_mixer.py
not sure.
there are no -pthreads flag check in cmakelists.txt.
only set(WAVPACK_ENABLE_THREADS FALSE) for wavpack which is not supported.
Should we remove this option?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think maybe because SDL3 itself has a threaded variant its required that all the sub-libraries do it.. but I can't remember the exact rationale.

Maybe leave it as is.

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