|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xiph.speex.player.Player.Playback
protected class Player.Playback
Playback thread
Field Summary | |
---|---|
protected javax.sound.sampled.AudioFormat |
audioFormat
|
protected javax.sound.sampled.AudioInputStream |
audioInputStream
|
protected java.io.InputStream |
audioStream
|
protected byte[] |
buffer
|
protected javax.sound.sampled.DataLine.Info |
info
|
protected javax.sound.sampled.SourceDataLine |
line
|
protected int |
read
|
protected java.lang.Thread |
thread
|
protected int |
written
|
Constructor Summary | |
---|---|
protected |
Player.Playback()
|
Method Summary | |
---|---|
void |
run()
The code that runs in the thread and fills the JavaSound playback buffer. |
protected void |
setupSound()
Setup the JavaSound System to play the Audio. |
protected void |
start()
Start the playback thread which fills the JavaSound playback buffer. |
protected void |
stop()
Stop the playback thread and destroy all resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.InputStream audioStream
protected javax.sound.sampled.AudioInputStream audioInputStream
protected javax.sound.sampled.AudioFormat audioFormat
protected javax.sound.sampled.DataLine.Info info
protected javax.sound.sampled.SourceDataLine line
protected byte[] buffer
protected int written
protected int read
protected java.lang.Thread thread
Constructor Detail |
---|
protected Player.Playback()
Method Detail |
---|
protected void start()
protected void stop()
protected void setupSound()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |