Package org.xiph.speex.player
Class Player.Playback
java.lang.Object
org.xiph.speex.player.Player.Playback
- All Implemented Interfaces:
Runnable
- Enclosing class:
Player
Playback thread
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AudioFormat
protected AudioInputStream
protected InputStream
protected byte[]
protected DataLine.Info
protected SourceDataLine
protected int
protected Thread
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
The code that runs in the thread and fills the JavaSound playback buffer.protected void
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.
-
Field Details
-
audioStream
-
audioInputStream
-
audioFormat
-
info
-
line
-
buffer
protected byte[] buffer -
written
protected int written -
read
protected int read -
thread
-
-
Constructor Details
-
Playback
protected Playback()
-
-
Method Details
-
start
protected void start()Start the playback thread which fills the JavaSound playback buffer. -
stop
protected void stop()Stop the playback thread and destroy all resources. -
setupSound
protected void setupSound()Setup the JavaSound System to play the Audio. -
run
public void run()The code that runs in the thread and fills the JavaSound playback buffer. Implemented from Runnable interface.
-