NodeLinkCrossfadeConfig
Since 3.0.0. The NodeLink 3.9+ crossfade of a player into its preloaded next track. Set it with player.setNodeLinkCrossfade(crossfade); on a Lavalink node that throws NODE_PROTOCOL_ERROR. duration goes up to 30000 ms.
Definition
export interface NodeLinkCrossfadeConfig {
/** Whether crossfade is on. */
enabled?: boolean;
/** How long the two tracks overlap, in milliseconds, up to 30000. */
duration?: number;
/** The curve of the crossfade. */
curve?: NodeLinkFadeCurve;
/** How the next track is read for the crossfade. */
mode?: "preload" | "stream" | "smart";
/** The audio the next track buffers before the crossfade can start, in milliseconds. */
minBufferMs?: number;
/** The audio the next track buffers, in milliseconds. */
bufferMs?: number;
}