Add SDL_mixer support#772
Conversation
|
I don't think this should be merged. See reasons in #601
Sounds like upstream should check for |
|
Is there any recent developments to adding SDL2_mixer to the nxdk? My project requires SDL2_mixer, and I might possibly assist getting the full SDL2_mixer to the SDK. |
|
@tifasoftware the work hasn't been forgotten, I am distracted with another project at the moment. This port currently is just the initial base WAV support, additional help is more than welcome. :) It'll be probably a week or two before I'm back working on libraries. |
|
That's absolutely okay, take your time. I too can get distracted with other parts of my game engine too. I'll probably be working on my other ports to the PS2, GameCube, and the Dreamcast in the meantime. |
|
My project also will need ogg support, but I'll try to help in any way i can in the future |
Summary
Adds SDL_mixer support to nxdk as an SDL2 companion library.
This first pass enables the core SDL_mixer library with WAV/chunk playback support only. Compressed/music codec support such as OGG, MP3, MOD, MIDI, and FLAC is intentionally deferred to follow-up work so the initial integration stays small and reviewable.
Changes
lib/sdl/SDL_mixersubmodulelibSDL2_mixer.libwhenNXDK_SDL = yMUSIC_WAVlib/pkgconfig/SDL2_mixer.pcsamples/sdl_mixerSDL_mixer submodule
The SDL_mixer submodule points at
PaulMDemers/SDL_mixer, branchnxdk-sdl-mixer.That branch is based on SDL_mixer
release-2.0.4and contains one small nxdk compatibility change: use the existingstrtok()path forXBOXbuilds instead of the Windowsstrtok_s()path.Verification
Built successfully on Windows/MSYS2 with:
This produced:
The sample generates a small in-memory WAV tone, loads it through Mix_LoadWAV_RW, and plays it through SDL_mixer.