public class AudioPlayer extends Object
Modifier and Type | Field and Description |
---|---|
protected LineListener |
lineListener |
protected EventListenerList |
listenerList |
protected long |
pausedMicrosecondPosition |
Constructor and Description |
---|
AudioPlayer() |
AudioPlayer(Clip clip) |
Modifier and Type | Method and Description |
---|---|
void |
addLineListener(LineListener listener) |
protected void |
doPause() |
protected void |
doStart(long microsecondPosition) |
protected void |
doStop(long microsecondPosition) |
protected void |
fireUpdate(LineEvent e) |
Clip |
getClip() |
LineListener[] |
getLineListeners() |
long |
getMillisecondLength() |
long |
getMillisecondPosition() |
String |
getStatus() |
protected void |
onLineEvent(LineEvent e) |
void |
pause() |
void |
play() |
protected void |
processLineEvent(LineEvent e) |
void |
removeLineListener(LineListener listener) |
void |
setClip(Clip clip) |
void |
setMillisecondPosition(long position) |
void |
stop() |
protected LineListener lineListener
protected EventListenerList listenerList
protected long pausedMicrosecondPosition
public AudioPlayer()
public AudioPlayer(Clip clip)
public void addLineListener(LineListener listener)
protected void doPause()
protected void doStart(long microsecondPosition)
protected void doStop(long microsecondPosition)
protected void fireUpdate(LineEvent e)
public Clip getClip()
public LineListener[] getLineListeners()
public long getMillisecondLength()
public long getMillisecondPosition()
public String getStatus()
protected void onLineEvent(LineEvent e)
public void pause()
public void play()
protected void processLineEvent(LineEvent e)
public void removeLineListener(LineListener listener)
public void setClip(Clip clip)
public void setMillisecondPosition(long position)
public void stop()