Function load

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

Chunk load (
  string file
) @trusted;

Parameters

NameDescription
file path to the audio file

Returns

loaded Chunk

Throws

dsdl2.SDLException if unable to load