emscripten
emscripten copied to clipboard
Support `formats` option in sdl2 mixer
This PR adds handle_options function in the SDL2_mixer port so one can build SDL2_mixer with specific formats with embuilder, such as
embuilder build sdl2_mixer:formats:mid,ogg,mp3
I found this syntax was added in https://github.com/emscripten-core/emscripten/pull/21345, but it was only applied to SDL2_image.
I added some tests, but it seems like FROZEN_CACHE is not happy with sdl2_mixer variants, hmm...