What it does
MusicOggLoopTimes sets LoopTimesOGG on a Music object. It takes musicID (an integer), startTime (a float) and endTime (a float), and returns nothing. musicID is the id of a Music object, the one LoadMusic returned: it is how the call knows what to act on.
Syntax
MusicOggLoopTimes(musicID integer, startTime float, endTime float)Parameters
| Name | Type |
|---|---|
| musicID | integer |
| startTime | float |
| endTime | float |
Every form returns
nothing
Example · generated
music = LoadMusic("assets/track.ogg")MusicOggLoopTimes(music, 1.0, 1.0)DO Sync()LOOPLoadMusic is there to give the call something to act on; MusicOggLoopTimes is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.