|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javazoom.jl.player.advanced.AdvancedPlayer
public class 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.
JavaLayerException
public AdvancedPlayer(java.io.InputStream stream, AudioDevice device) throws JavaLayerException
JavaLayerException
Method Detail |
---|
public void play() throws JavaLayerException
JavaLayerException
public boolean play(int frames) throws JavaLayerException
frames
- The number of frames to play.
JavaLayerException
public void close()
protected boolean decodeFrame() throws JavaLayerException
JavaLayerException
protected boolean skipFrame() throws JavaLayerException
JavaLayerException
public boolean play(int start, int end) throws JavaLayerException
start
- The first frame to playend
- The last frame to play
JavaLayerException
public void setPlayBackListener(PlaybackListener listener)
PlaybackListener
public PlaybackListener getPlayBackListener()
PlaybackListener
public void stop()
PlaybackListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |