ccs.audio
Interface Playlist


public interface Playlist

A playlist is an ordered list of Tracks.


Method Summary
 void changeTrack(TrackChange motion)
          Change to a different track (or possibly the same one.)
 Track currentTrack()
          The current track.
 Track peekTrack(TrackChange motion)
          The track which would be accessed by the next subsequent changeTrack() with the supplied motion.
 

Method Detail

changeTrack

void changeTrack(TrackChange motion)
Change to a different track (or possibly the same one.)

Parameters:
motion - The track to change to. If the motion is NEXT and the current track is the last one, behaviour is implementation-dependent. Typically this will either change to the first track (loop around) or to no track (end of the playlist).

currentTrack

Track currentTrack()
The current track. This should only change in response to a changeTrack call.

Returns:
The current Track object, or null if there is none (end of playlist, playlist empty.)

peekTrack

Track peekTrack(TrackChange motion)
The track which would be accessed by the next subsequent changeTrack() with the supplied motion. Don't change the current-track pointer.