Class DeckReference


  • public class DeckReference
    extends Object
    Uniquely identifies a place where a track can be currently loaded on the network, either the visible deck of one of the players, or one of the hot cues on a player. Used to keep track of which tracks may suddenly start playing.
    Author:
    James Elliott
    • Field Detail

      • player

        public final int player
        The player in which this track is loaded.
      • hotCue

        public final int hotCue
        The hot cue number in which the track is loaded, or 0 if it is actively loaded on the playback deck.
    • Method Detail

      • getDeckReference

        public static DeckReference getDeckReference​(int player,
                                                     int hotCue)
        Get a unique reference to a place where a track is currently loaded in a player.
        Parameters:
        player - the player in which the track is loaded
        hotCue - hot cue number in which the track is loaded, or 0 if it is actively loaded on the playback deck
        Returns:
        the instance that will always represent a reference to the specified player and hot cue