Skip to content

rq.MusicOpts ​

since 2.4.0

How rq.music.replace and ctx:file play a file.

Fields ​

NameTypeDescription
loop_start (optional)numberWhere the loop goes back to after the end, in seconds. Default the file's LOOPSTART tag, else 0.
loop_end (optional)numberWhere the loop ends, in seconds. Default the file's LOOPLENGTH or LOOPEND tag, else the file's end.
volume (optional)integerThe file's own volume, 0 to 200, on top of the game's music volume and fades. Default 100, as loud as the file is; above 100 raises a quiet file, and a loud one clips (0 to 100 before 2.27.0).
name (optional)stringreplace only: the track's name in the extras' music room and in rq.music.info.

Used by ​

rq.MusicPlayCtx:file, rq.music.replace