Function Music.play

Wraps Mix_PlayMusic which plays the Music

void play (
  uint loops = 1u
) @trusted const;

Parameters

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

Throws

dsdl2.SDLException if failed to play the music