sound.chat
Class AudioCapture

java.lang.Object
  extended by sound.chat.AudioBase
      extended by sound.chat.AudioCapture
All Implemented Interfaces:
java.util.EventListener, javax.sound.sampled.LineListener

public class AudioCapture
extends AudioBase


Nested Class Summary
 class AudioCapture.TargetDataLineMeter
           
 
Constructor Summary
AudioCapture(int formatCode, javax.sound.sampled.Mixer mixer, int bufferSizeMillis)
           
 
Method Summary
 javax.sound.sampled.AudioInputStream getAudioInputStream()
           
 java.io.OutputStream getOutputStream()
           
 void setOutputStream(java.io.OutputStream stream)
          Set the output stream to write to.
 void start()
           
 
Methods inherited from class sound.chat.AudioBase
close, close, getBufferSize, getBufferSizeMillis, getFormatCode, getLevel, isMuted, isOpen, isStarted, open, setBufferSizeMillis, setFormatCode, setMixer, setMuted, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioCapture

public AudioCapture(int formatCode,
                    javax.sound.sampled.Mixer mixer,
                    int bufferSizeMillis)
Method Detail

start

public void start()
           throws java.lang.Exception
Overrides:
start in class AudioBase
Throws:
java.lang.Exception

getAudioInputStream

public javax.sound.sampled.AudioInputStream getAudioInputStream()

setOutputStream

public void setOutputStream(java.io.OutputStream stream)
Set the output stream to write to. Must be set *before* calling start. When writing to the Output Stream, the stream returned by getAudioInputStream must not be read from.


getOutputStream

public java.io.OutputStream getOutputStream()