MidiSwap

class MidiSwap : OutgoingGameMessage

Midi swap packet allows one to hot-swap a song mid-playing with a different one that was pre-queued with the MidiSongWithSecondary packet. This hot-swapping only works if the secondary packet was used, as that defines the id of the secondary song to swap to.

Constructors

Link copied to clipboard
constructor(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).

Link copied to clipboard

the speed at which the new song fades in, in client cycles (20ms/cc).

Link copied to clipboard

the delay in client cycles (20ms/cc) until the old song begins fading out.

Link copied to clipboard

the speed at which the old song fades out in client cycles (20ms/cc).

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