org.xiph.speex.player

Class Recorder.Capture

Enclosing Class:
Recorder
Implemented Interfaces:
Runnable

protected class Recorder.Capture
extends java.lang.Object
implements Runnable

Capture thread

Field Summary

protected AudioFormat
audioFormat
protected AudioInputStream
audioInputStream
protected byte[]
buffer
protected DataLine.Info
info
protected TargetDataLine
line
protected ByteArrayOutputStream
out
protected AudioFileFormat.Type
targetType
protected Thread
thread

Method Summary

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.

Field Details

audioFormat

protected AudioFormat audioFormat

audioInputStream

protected AudioInputStream audioInputStream

buffer

protected byte[] buffer

info

protected DataLine.Info info

line

protected TargetDataLine line

out

protected ByteArrayOutputStream out

targetType

protected AudioFileFormat.Type targetType

thread

protected Thread thread

Method Details

run

public void run()
The code that runs in the thread and recovers the JavaSound capture buffer. Implemented from Runnable interface.

setupSound

protected void setupSound()
Setup the JavaSound System to play the Audio.

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.

Copyright © 1999-2004 Wimba S.A. All Rights Reserved.