MIX_Init - Man Page
Initialize the SDL_mixer library.
Synopsis
#include <SDL3_mixer/SDL_mixer.h> bool MIX_Init(void);
Description
This must be successfully called once before (almost) any other SDL_mixer function can be used.
It is safe to call this multiple times; the library will only initialize once, and won't deinitialize until MIX_Quit() has been called a matching number of times. Extra attempts to init report success.
Return Value
Returns true on success, false on error; call SDL_GetError() for details.
Thread Safety
This function is not thread safe.
Availability
This function is available since SDL_mixer 3.0.0.
See Also
Info
SDL_mixer 3.2.4 SDL_mixer3 FUNCTIONS