Closed genpfault closed 2 years ago
Looks like the "This must be the first function you call in SDL_mixer" language was added earlier this year in this commit.
Yeah, I don't think that's correct. @icculus?
Hmm, Mix_Init() only configures music format stuff, and Mix_LoadMusic_RW() will do it for you anyhow. What's the value of having Mix_Init() at all, then? To know if a certain format is unsupported up front?
(We can change the "you must call this first" language in any case, since that's clearly not true.)
What's the value of having Mix_Init() at all, then? To know if a certain format is unsupported up front?
Yep.
The
playmus.c
andplaywave.c
sample programs don't callMix_Init()
, seemingly in violation of the API documentation (emphasis mine):Are the samples wrong? Is the documentation wrong? Something else?