loadSO

Loads the SDL2_mixer shared dynamic library, which wraps bindbc-sdl's loadSDLMixer function

Unless if bindbc-sdl is on static mode (by adding a BindSDL_Static version), this function will exist and must be called before any calls are made to the library. Otherwise, a segfault will happen upon any function calls.

version(!BindSDL_Static)
@safe @trusted
static if(bindSDLMixer)
void
loadSO
(
string libName = null
)

Parameters

libName string

name or path to look the SDL2_mixer SO/DLL for, otherwise null for default searching path

Throws

dsdl2.SDLException if failed to find the library

Meta