IAudioPlayer.PlayMusic(IMusic, int, long, string) Method
Definition¶
Namespace: Brine2D.Audio
Plays background music.
void PlayMusic(Brine2D.Audio.IMusic music, int loops=-1, long loopStartMs=0L, string? bus=null);
Parameters¶
music IMusic
loops System.Int32
loopStartMs System.Int64
When looping, the track loops back to this position in milliseconds instead of the beginning. This allows an intro section before the loop point. Default 0.
bus System.String
Bus name to tag the music track with. Defaults to "music" when null.