SDL_mixer icon indicating copy to clipboard operation
SDL_mixer copied to clipboard

Release for SDL3?

Open Midar opened this issue 8 months ago • 14 comments

Hi!

Currently, the lack of SDL3_mixer is preventing some games to be ported to SDL3. It's been a while since SDL3 has been released, will there be an SDL3-compatible SDL_mixer any time soon?

Midar avatar Apr 19 '25 20:04 Midar

SDL3_Mixer is still in the design phase. You can follow the progress, and give feedback, in https://github.com/libsdl-org/SDL_mixer/issues/662

(I'm going to keep this issue open and pin it to give it more visible)

madebr avatar Apr 19 '25 22:04 madebr

A new design and API is nice. But in the meantime, would it be possible to have an SDL3-compatible SDL2_mixer, maybe?

Midar avatar Apr 19 '25 22:04 Midar

SDL_mixer's current main branch can be built with SDL3. We have not created a release for this branch because we promise API and ABI compatibility: no breaking changes are allowed.

madebr avatar Apr 19 '25 22:04 madebr

What I mean is: Can SDL2_mixer (with the SDL2_mixer API/ABI) be made to work with SDL3 so that the lack of SDL3_mixer does not prevent porting efforts to SDL3? Porting from SDL2_mixer to SDL3_mixer could then be done at a later time. But the current state is: Every project using SDL_mixer is currently unable to port to SDL3 for the lack of any SDL3 compatible SDL_mixer.

Midar avatar Apr 19 '25 23:04 Midar

Actual work on the new api for SDL3_mixer is done in an external repo. So the api of the current (can't promise anything about the future) main branch is very similar to the SDL2_mixer api.

madebr avatar Apr 19 '25 23:04 madebr

Ok, the new SDL3_mixer API has landed in main (and we'll do an official release of it once SDL 3.4.0 ships, since it relies on some SDL3 APIs that are new to that release).

If you need the previous API, we have created a sdl2-api-on-sdl3 branch in this repository, which gives you the old API but compatible with SDL3. That is not where development will be done in the future, but it might be helpful in the short term for apps that are in the process of migrating.

icculus avatar Jul 23 '25 23:07 icculus

When trying the release scripts with the new SDL3_mixer main branch, I'm seeing these compile errors. Are these expected (because it uses SDL3 3.2.18, and not SDL3 3.3+)?

madebr avatar Jul 24 '25 21:07 madebr

We should perhaps also bump SDL3_mixer to 3.1.0

madebr avatar Jul 24 '25 21:07 madebr

When trying the release scripts with the new SDL3_mixer main branch, I'm seeing these compile errors. Are these expected (because it uses SDL3 3.2.18, and not SDL3 3.3+)?

Yes, SDL_mixer relies on the latest main code.

We should perhaps also bump SDL3_mixer to 3.1.0

Yes, that's a good idea.

slouken avatar Jul 24 '25 22:07 slouken

Bumped to 3.1.0 in ce2abbd40ec49885e97aad7c0c4de827ed5198db.

icculus avatar Jul 25 '25 05:07 icculus

Wow, that's great news! Is there already a rough timeline for the SDL 3.4 + SDL_mixer 3 release?

Midar avatar Jul 30 '25 21:07 Midar

Wow, that's great news! Is there already a rough timeline for the SDL 3.4 + SDL_mixer 3 release?

There is still a lot of work to do until we have version 3.4. You can check the progress here: https://github.com/libsdl-org/SDL/milestone/18

elmarsan avatar Sep 03 '25 11:09 elmarsan