What it does
MusicOggDuration reads DurationOGG on a Music object. It takes musicID (an integer), and answers a float. musicID is the id of a Music object, the one LoadMusic returned: it is how the call knows what to act on.
Syntax
MusicOggDuration(musicID integer) → floatParameters
| Name | Type |
|---|---|
| musicID | integer |
Every form returns
float
Example · generated
music = LoadMusic("assets/track.ogg")DO Print(MusicOggDuration(music)) Sync()LOOPLoadMusic is there to give the call something to act on; MusicOggDuration 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.