init

Wraps Mix_Init which initializes selected SDL2_mixer audio format subsystems

@safe @trusted
static if(bindSDLMixer)
void
init
(
bool flac = false
,
bool mod = false
,
bool mp3 = false
,
bool ogg = false
,
bool mid = false
,
bool opus = false
,
bool everything = false
)

Parameters

flac bool

selects the MIX_INIT_FLAC subsystem

mod bool

selects the MIX_INIT_MOD subsystem

mp3 bool

selects the MIX_INIT_MP3 subsystem

ogg bool

selects the MIX_INIT_OGG subsystem

mid bool

selects the MIX_INIT_FLUIDSYNTH (for SDL_mixer below 2.0.2) / MIX_INIT_MID subsystem

opus bool

selects the MIX_INIT_OPUS subsystem (from SDL_mixer 2.0.4)

everything bool

selects every available subsystem

Throws

dsdl2.SDLException if any selected subsystem failed to initialize

Examples

dsdl2.mixer.init(everything : true);

Meta