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
  • Felddetails

    • sidplay2Section

      private ISidPlay2Section sidplay2Section
      Configuration.
    • tune

      private SidTune tune
      Current Tune.
    • first

      private int first
      First entry of the play-list.
    • length

      private int length
      Number of entries in the play-list.
    • current

      private int current
      Current entry of the play-list. It wraps around the number of entries.
  • Konstruktordetails

  • Methodendetails

    • prepare

      public void prepare()
    • getCurrent

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

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

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

      public void next()
      Choose next play list entry.
    • previous

      public void previous()
      Choose previous play list entry.
    • first

      public void first()
      Choose first play list entry.
    • last

      public void last()
      Choose last play list entry.
    • hasPrevious

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

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

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

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