|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--local.media.AudioClipPlayer
Plays an audio file.
| Constructor Summary | |
AudioClipPlayer(javax.sound.sampled.AudioInputStream audio_inputstream,
AudioClipPlayerListener listener)
Creates the SoundPlayer |
|
AudioClipPlayer(java.io.File file,
AudioClipPlayerListener listener)
Creates the SoundPlayer |
|
AudioClipPlayer(java.io.InputStream inputstream,
AudioClipPlayerListener listener)
Creates the SoundPlayer |
|
AudioClipPlayer(java.lang.String filename,
AudioClipPlayerListener listener)
Creates the SoundPlayer |
|
| Method Summary | |
void |
goTo(long millisec)
Goes to a time position |
void |
loop()
Loops the sound until stopped |
void |
loop(int n)
Loops the sound n times. if n=0, it loops until stopped |
static void |
main(java.lang.String[] args)
The main method. |
void |
play()
Plays the sound |
void |
replay()
Plays the sound from begining (restart) |
void |
rewind()
Rewinds the sound |
void |
stop()
Stops and rewinds the sound |
void |
update(javax.sound.sampled.LineEvent event)
Called by the sound line |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AudioClipPlayer(java.lang.String filename,
AudioClipPlayerListener listener)
public AudioClipPlayer(java.io.File file,
AudioClipPlayerListener listener)
public AudioClipPlayer(java.io.InputStream inputstream,
AudioClipPlayerListener listener)
public AudioClipPlayer(javax.sound.sampled.AudioInputStream audio_inputstream,
AudioClipPlayerListener listener)
| Method Detail |
public void loop()
public void loop(int n)
public void play()
public void stop()
public void rewind()
public void goTo(long millisec)
public void replay()
public void update(javax.sound.sampled.LineEvent event)
update in interface javax.sound.sampled.LineListenerpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||