sound.chat
Class AudioCapture
java.lang.Object
sound.chat.AudioBase
sound.chat.AudioCapture
- All Implemented Interfaces:
- java.util.EventListener, javax.sound.sampled.LineListener
public class AudioCapture
- extends AudioBase
Constructor Summary |
AudioCapture(int formatCode,
javax.sound.sampled.Mixer mixer,
int bufferSizeMillis)
|
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 |
AudioCapture
public AudioCapture(int formatCode,
javax.sound.sampled.Mixer mixer,
int bufferSizeMillis)
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()