seconds; 0 switches immediately with no crossfade
Plays the supplied sequence repeatedly. This is deliberately small and backend-agnostic:
callers can repeat entries to weight a track, while HTMLAudioElement's optional onended
advances the queue when available.
Background music with crossfade: switching tracks fades the old one out and the new one in over the same span, rather than cutting straight from one to the other. Like
AnimatedSprite, nothing advances on its own - callupdate(dt)from the scene.Example