loadMusic

Wraps Mix_LoadMUS which loads an audio file from the filesystem to a dsdl2.mixer.Music

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

Parameters

file string

path to the audio file

Return Value

Type: Music

loaded dsdl2.mixer.Music

Throws

dsdl2.SDLException if unable to load

Meta