Klasse PlayList

java.lang.Object
sidplay.player.PlayList

public class PlayList extends Object
PlayList is a track list of songs to play. It starts with the first entry, which is the marker to detect a wrap-around. The current entry is the currently selected song.
E.g. 5 songs in a tune using start song number 3 will result in
[3],4,5,1,2 -> first = 3, length=5, current song is within range 1..5
Autor:
Ken Händel
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    private int
    Current entry of the playlist.
    private final int
    First entry of the playlist.
    private final int
    Number of entries in the playlist.
    private final ISidPlay2Section
    Configuration.
    private final SidTune
    Current Tune.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    PlayList(ISidPlay2Section sidplay2Section, SidTune tune, boolean firstPlayListEntryIsOne)
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Choose the first playlist entry.
    int
    Get the currently selected playlist entry.
    int
    Get a number of entries.
    int
    Get the next playlist entry.
    int
    Get the previous playlist entry.
    int
    Get the current track (playlist entry relative to the first).
    boolean
    Is a next playlist entry available?
    boolean
    Is a previous playlist entry available?
    void
    Choose the last playlist entry.
    void
    Choose the next playlist entry.
    void
     
    void
    Choose the previous playlist entry.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • sidplay2Section

      private final ISidPlay2Section sidplay2Section
      Configuration.
    • tune

      private final SidTune tune
      Current Tune.
    • first

      private final int first
      First entry of the playlist.
    • length

      private final int length
      Number of entries in the playlist.
    • current

      private int current
      Current entry of the playlist. It wraps around the number of entries.
  • Konstruktordetails

  • Methodendetails

    • prepare

      public void prepare()
    • getCurrent

      public int getCurrent()
      Get the currently selected playlist entry.
      Gibt zurück:
      current song number
    • getTrackNum

      public int getTrackNum()
      Get the current track (playlist entry relative to the first).
      Gibt zurück:
      track number
    • getLength

      public int getLength()
      Get a number of entries.
      Gibt zurück:
      number of songs
    • next

      public void next()
      Choose the next playlist entry.
    • previous

      public void previous()
      Choose the previous playlist entry.
    • first

      public void first()
      Choose the first playlist entry.
    • last

      public void last()
      Choose the last playlist entry.
    • hasPrevious

      public boolean hasPrevious()
      Is a previous playlist entry available?
      Gibt zurück:
      is a previous song available?
    • hasNext

      public boolean hasNext()
      Is a next playlist entry available?
      Gibt zurück:
      is the next song available?
    • getPrevious

      public int getPrevious()
      Get the previous playlist entry.
      Gibt zurück:
      the previous song of the playlist
    • getNext

      public int getNext()
      Get the next playlist entry.
      Gibt zurück:
      the next song of the playlist