load

Wraps Mix_LoadWAV which loads an audio file from the filesystem to a dsdl2.mixer.Chunk

@safe @trusted
static if(bindSDLMixer)
load
(
string file
)

Parameters

file string

path to the audio file

Return Value

Type: Chunk

loaded dsdl2.mixer.Chunk

Throws

dsdl2.SDLException if unable to load

Meta