|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--javazoom.jl.player.advanced.AdvancedPlayer
a hybrid of javazoom.jl.player.Player tweeked to include play(startFrame, endFrame)
hopefully this will be included in the api
| Constructor Summary | |
AdvancedPlayer(java.io.InputStream stream)
Creates a new Player instance. |
|
AdvancedPlayer(java.io.InputStream stream,
AudioDevice device)
|
|
| Method Summary | |
void |
close()
Cloases this player. |
protected boolean |
decodeFrame()
Decodes a single frame. |
PlaybackListener |
getPlayBackListener()
gets the PlaybackListener |
void |
play()
|
boolean |
play(int frames)
Plays a number of MPEG audio frames. |
boolean |
play(int start,
int end)
Plays a range of MPEG audio frames |
void |
setPlayBackListener(PlaybackListener listener)
sets the PlaybackListener |
protected boolean |
skipFrame()
skips over a single frame |
void |
stop()
closes the player and notifies PlaybackListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AdvancedPlayer(java.io.InputStream stream)
throws JavaLayerException
Player instance.
public AdvancedPlayer(java.io.InputStream stream,
AudioDevice device)
throws JavaLayerException
| Method Detail |
public void play()
throws JavaLayerException
public boolean play(int frames)
throws JavaLayerException
frames - The number of frames to play.public void close()
protected boolean decodeFrame()
throws JavaLayerException
protected boolean skipFrame()
throws JavaLayerException
public boolean play(int start,
int end)
throws JavaLayerException
start - The first frame to playend - The last frame to playpublic void setPlayBackListener(PlaybackListener listener)
PlaybackListenerpublic PlaybackListener getPlayBackListener()
PlaybackListenerpublic void stop()
PlaybackListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||