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 AudioFormatprotected AudioInputStreamprotected InputStreamprotected byte[]protected DataLine.Infoprotected SourceDataLineprotected intprotected Threadprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()The code that runs in the thread and fills the JavaSound playback buffer.protected voidSetup the JavaSound System to play the Audio.protected voidstart()Start the playback thread which fills the JavaSound playback buffer.protected voidstop()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.
-