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 AudioFormatprotected AudioInputStreamprotected byte[]protected DataLine.Infoprotected TargetDataLineprotected ByteArrayOutputStreamprotected AudioFileFormat.Typeprotected Thread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()The code that runs in the thread and recovers the JavaSound capture 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
-
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.
-