local.media
Class Mixer

java.lang.Object
  |
  +--local.media.Mixer

public class Mixer
extends java.lang.Object

MixerLine is a simple G711 mixer with M input lines (OutputStreams) and N output lines (InputStreams).

Each line has an identifier (Object) used as key when adding or removing the line.


Constructor Summary
Mixer()
          Creates a new Mixer.
 
Method Summary
 void close()
          Close the Mixer.
 java.io.OutputStream newInputLine(java.lang.Object id)
          Adds a new input line.
 java.io.InputStream newOutputLine(java.lang.Object id)
          Adds a new output line.
 void removeInputLine(java.lang.Object id)
          Removes a input line.
 void removeOutputLine(java.lang.Object id)
          Removes a output line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mixer

public Mixer()
Creates a new Mixer.
Method Detail

close

public void close()
           throws java.io.IOException
Close the Mixer.

newInputLine

public java.io.OutputStream newInputLine(java.lang.Object id)
                                  throws java.io.IOException
Adds a new input line.

removeInputLine

public void removeInputLine(java.lang.Object id)
Removes a input line.

newOutputLine

public java.io.InputStream newOutputLine(java.lang.Object id)
                                  throws java.io.IOException
Adds a new output line.

removeOutputLine

public void removeOutputLine(java.lang.Object id)
Removes a output line.