View source
typedef FunkinSoundPlayMusicParams
package funkin.audio
import funkin.audio.FunkinSound
Available on all platforms
Additional parameters for FunkinSound.playMusic()
Fields
optionalsuffix:Null<String>
* The suffix of the music file to play. Usually for "-erect" tracks when loading an INST file
* @default ``
optionalrestartTrack:Null<Bool>
* Whether to override music if the same track is already playing.
* @default `false`
optionalpathsFunction:Null<PathsFunction>
* Which Paths function to use to load a song
* @default `MUSIC`
optionalpartialParams:Null<PartialSoundParams>
optionaloverrideExisting:Null<Bool>
* Whether to override music if a different track is already playing.
* @default `false`
optionalonLoad:Null<() ‑> Void>
optionalonComplete:Null<() ‑> Void>
optionalmapTimeChanges:Null<Bool>
* Whether to check for `SongMusicData` to update the Conductor with.
* @default `true`