Method SDL.Music()->play()


Method play

object play(int|void loops)

Description

Starts playback. Repeats loops number of times.

Parameter loops

The number of times the music should be looped (i.e. repeated). If loops is -1 or omitted, the music will repeat indefinitely.

Returns

The SDL.Music object.