MusicOggSeek

Family: Music · One form

What it does

MusicOggSeek takes musicID (an integer), seconds (a float) and mode (an integer), 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

MusicOggSeek(musicID integer, seconds float, mode integer)

Parameters

NameType
musicIDinteger
secondsfloat
modeinteger

Every form returns

nothing

Example · generated

music = LoadMusic("assets/track.ogg")MusicOggSeek(music, 1.0, 1)DO  Sync()LOOP

LoadMusic is there to give the call something to act on; MusicOggSeek 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.

29 commands in Music