Package org.xiph.speex.player
Class Recorder.Capture
java.lang.Object
org.xiph.speex.player.Recorder.Capture
- All Implemented Interfaces:
Runnable
- Enclosing class:
Recorder
Capture thread
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AudioFormat
protected AudioInputStream
protected byte[]
protected DataLine.Info
protected TargetDataLine
protected ByteArrayOutputStream
protected AudioFileFormat.Type
protected Thread
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
The code that runs in the thread and recovers the JavaSound capture 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
-
out
-
audioInputStream
-
audioFormat
-
info
-
targetType
-
line
-
buffer
protected byte[] buffer -
thread
-
-
Constructor Details
-
Capture
protected Capture()
-
-
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 recovers the JavaSound capture buffer. Implemented from Runnable interface.
-