Function initAudio

Wraps SDL_AudioInit which initializes the audio subsystem while specifying the audio driver used

void initAudio (
  string driverName
) @trusted;

Parameters

NameDescription
driverName the name of the audio driver

Throws

dsdl2.SDLException if the audio driver could not be initialized