|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AudioTronListener interface describes a notification mechanism for state changes.
Field Summary | |
static int |
STATE_PAUSED
|
static int |
STATE_PLAYING
|
static int |
STATE_STOPPED
|
static int |
STATE_UNKNOWN
|
Method Summary | |
void |
currentSong(JavaTron.AudioTronSong song)
Notification of the details of the current song playing |
void |
mute(boolean muted)
Notification of mute state |
void |
newSongQueue(java.util.Enumeration songQueue)
Notification that a new song queue is available |
void |
nextSong(JavaTron.AudioTronSong song)
Notification of the details of the next song to be played |
void |
random(boolean random)
Notification of random state |
void |
repeat(boolean repeat)
Notification of repeat state |
void |
songAdded(JavaTron.AudioTronSong song)
Notification that a song has been added to the end of the playlist |
void |
songUpdated(JavaTron.AudioTronSong song)
Notification that information about a particular song has been updated |
void |
state(int state)
Notification of playing state. |
void |
status(java.lang.String status,
boolean longRunning)
Notification of the AudioTron "controller enginer" status. |
void |
version(java.lang.String version)
Notification of AudioTron version |
Field Detail |
public static final int STATE_UNKNOWN
public static final int STATE_PLAYING
public static final int STATE_PAUSED
public static final int STATE_STOPPED
Method Detail |
public void mute(boolean muted)
muted
- true if muted, false otherwisepublic void repeat(boolean repeat)
repeat
- true if repeat is set, false otherwisepublic void random(boolean random)
random
- true if random is set, false otherwisepublic void state(int state)
state
- can be one of STATE_UNKNOWN
,
STATE_PLAYING
, STATE_PAUSED
,
STATE_STOPPED
public void version(java.lang.String version)
version
- The AudioTron version as reported by the AudioTron webpagepublic void newSongQueue(java.util.Enumeration songQueue)
public void songAdded(JavaTron.AudioTronSong song)
song
- the song that was addedpublic void currentSong(JavaTron.AudioTronSong song)
song
- the current song playingpublic void nextSong(JavaTron.AudioTronSong song)
song
- the next song to playpublic void songUpdated(JavaTron.AudioTronSong song)
song
- the song that is being updated (it is gauranteed to have
the title and index information filled inpublic void status(java.lang.String status, boolean longRunning)
status
- a string that indicates what the "engine" is doinglongRunning
- this value is set if the current operation is long
running. In the case that it is long running,
status will be called repeatedly (likely with
the same value) during the long running operation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |