sound.chat
Class AudioBase

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

public abstract class AudioBase
extends java.lang.Object
implements javax.sound.sampled.LineListener


Method Summary
 void close()
           
 void close(boolean willReopen)
           
 int getBufferSize()
           
 int getBufferSizeMillis()
           
 int getFormatCode()
           
 int getLevel()
           
 boolean isMuted()
           
 boolean isOpen()
           
 boolean isStarted()
           
 void open()
           
 void setBufferSizeMillis(int bufferSizeMillis)
           
 void setFormatCode(int formatCode)
           
 void setMixer(javax.sound.sampled.Mixer mixer)
           
 void setMuted(boolean muted)
           
 void start()
           
 void update(javax.sound.sampled.LineEvent event)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

update

public void update(javax.sound.sampled.LineEvent event)
Specified by:
update in interface javax.sound.sampled.LineListener

open

public void open()
          throws java.lang.Exception
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

close

public void close()

close

public void close(boolean willReopen)

isStarted

public boolean isStarted()

isOpen

public boolean isOpen()

getBufferSize

public int getBufferSize()

getBufferSizeMillis

public int getBufferSizeMillis()

setBufferSizeMillis

public void setBufferSizeMillis(int bufferSizeMillis)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getFormatCode

public int getFormatCode()

setFormatCode

public void setFormatCode(int formatCode)
                   throws java.lang.Exception
Throws:
java.lang.Exception

setMixer

public void setMixer(javax.sound.sampled.Mixer mixer)
              throws java.lang.Exception
Throws:
java.lang.Exception

setMuted

public void setMuted(boolean muted)

isMuted

public boolean isMuted()

getLevel

public int getLevel()