Music.play

Wraps Mix_PlayMusic which plays the dsdl2.mixer.Music

class Music
const @trusted
void
play
(
uint loops = 1
)

Parameters

loops uint

how many times the music should be played (cast(uint) -1 for infinity)

Throws

dsdl2.SDLException if failed to play the music

Meta