protected class Recorder.Capture
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected javax.sound.sampled.AudioFormat |
audioFormat |
protected javax.sound.sampled.AudioInputStream |
audioInputStream |
protected byte[] |
buffer |
protected javax.sound.sampled.DataLine.Info |
info |
protected javax.sound.sampled.TargetDataLine |
line |
protected java.io.ByteArrayOutputStream |
out |
protected javax.sound.sampled.AudioFileFormat.Type |
targetType |
protected java.lang.Thread |
thread |
| Modifier | Constructor and Description |
|---|---|
protected |
Capture() |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
The code that runs in the thread and recovers the JavaSound capture
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.
|
protected java.io.ByteArrayOutputStream out
protected javax.sound.sampled.AudioInputStream audioInputStream
protected javax.sound.sampled.AudioFormat audioFormat
protected javax.sound.sampled.DataLine.Info info
protected javax.sound.sampled.AudioFileFormat.Type targetType
protected javax.sound.sampled.TargetDataLine line
protected byte[] buffer
protected java.lang.Thread thread
protected void start()
protected void stop()
protected void setupSound()
public void run()
run in interface java.lang.RunnableCopyright © 1999-2004 Wimba S.A. All Rights Reserved.