MidiSongWithSecondary

class MidiSongWithSecondary : OutgoingGameMessage

Midi song packets are used to play songs through the music player. This packet pre-queues a secondary song which can be hot-swapped at any point. The intended use case here is to swap the song out mid-playing between identical songs that have different tones playing, e.g. a more up-beat vs a more somber song, while letting the song play on from where it was, rather than re-starting the song.

Constructors

Link copied to clipboard
constructor(primaryId: Int, secondaryId: Int, fadeOutDelay: Int, fadeOutSpeed: Int, fadeInDelay: Int, fadeInSpeed: Int)

Properties

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard

the delay until the new song begins playing, in client cycles (20ms/cc). The default value for this, based on the old midi song packet is 60.

Link copied to clipboard

the speed at which the new song fades in, in client cycles (20ms/cc). The default value for this, based on the old midi song packet is 0.

Link copied to clipboard

the delay in client cycles (20ms/cc) until the old song begins fading out. The default value for this, based on the old midi song packet, is 0.

Link copied to clipboard

the speed at which the old song fades out in client cycles (20ms/cc). The default value for this, based on the old midi song packet, is 60.

Link copied to clipboard

the primary id of the song that will be playing

Link copied to clipboard

the secondary id that will play if the MIDI_SWAP packet is sent.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun estimateSize(): Int
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String