libsdl-org / SDL_mixer

An audio mixer that supports various file formats for Simple Directmedia Layer.
zlib License
432 stars 147 forks source link

Relationship between SDL_mixer and SDL_sound is unclear #572

Closed Splendide-Imaginarius closed 1 year ago

Splendide-Imaginarius commented 1 year ago

SDL_mixer and @icculus's SDL_sound seem to have nontrivial overlap. I can't find any documentation on what the relationship between the two projects is, and how one would pick between them for a given use case. Is there any such documentation that I've missed? Best I can find is a comment in #95 from @slouken indicating that sometime in 2011 there was an intent to merge the two projects; I suspect a lot has happened since then.

slouken commented 1 year ago

SDL_sound is designed to load audio files, essentially SDL_image for audio. SDL_mixer does that and also allows mixing with various effects. We were intending to have SDL_mixer use SDL_sound for audio loading at one point, but I think it's a probably a moot point these days.