Package sidplay.player
Klasse PlayList
java.lang.Object
sidplay.player.PlayList
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
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
FelderModifizierer und TypFeldBeschreibungprivate intCurrent entry of the play-list.private intFirst entry of the play-list.private intNumber of entries in the play-list.private ISidPlay2SectionConfiguration.private SidTuneCurrent Tune. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPlayList(ISidPlay2Section sidplay2Section, SidTune tune, boolean firstPlayListEntryIsOne) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidfirst()Choose first play list entry.intGet currently selected play list entry.intGet number of entries.intgetNext()Get next play list entry.intGet previous play list entry.intGet current track (play list entry relative to the first).booleanhasNext()Is a next play list entry available?booleanIs a previous play list entry available?voidlast()Choose last play list entry.voidnext()Choose next play list entry.voidprepare()voidprevious()Choose previous play list entry.
-
Felddetails
-
sidplay2Section
Configuration. -
tune
Current Tune. -
first
private int firstFirst entry of the play-list. -
length
private int lengthNumber of entries in the play-list. -
current
private int currentCurrent entry of the play-list. It wraps around the number of entries.
-
-
Konstruktordetails
-
PlayList
-
-
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
-