PlayBGM

Category: Audio

Back to System Functions


Signature

PlayBGM(songPath As String, [loop As Boolean])

Returns

Void

Description

Starts background music playback. The optional second argument controls whether the song loops, and defaults to True.

Use SetBgmVolume to control the global music volume. The default music volume is 1.0.

Example

PlayBGM("music/title.mp3") PlayBGM("music/battle.mp3", False)