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