SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.media.codec.audio.alaw
Class Packetizer

java.lang.Object
  extended by com.sun.media.BasicPlugIn
      extended by com.sun.media.BasicCodec
          extended by com.ibm.media.codec.audio.AudioCodec
              extended by com.ibm.media.codec.audio.AudioPacketizer
                  extended by net.java.sip.communicator.impl.media.codec.audio.alaw.Packetizer
All Implemented Interfaces:
javax.media.Codec, javax.media.Controls, javax.media.PlugIn

public class Packetizer
extends com.ibm.media.codec.audio.AudioPacketizer

Packetizer for ALAW codec

Author:
Damian Minkov

Field Summary
 
Fields inherited from class com.ibm.media.codec.audio.AudioPacketizer
history, historyLength, packetSize, sample_count
 
Fields inherited from class com.ibm.media.codec.audio.AudioCodec
DEBUG, defaultOutputFormats, inputFormat, outputFormat, PLUGIN_NAME, supportedInputFormats, supportedOutputFormats
 
Fields inherited from class com.sun.media.BasicCodec
inputFormats, opened, outputFormats, pendingEOM
 
Fields inherited from class com.sun.media.BasicPlugIn
controls
 
Fields inherited from interface javax.media.PlugIn
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
 
Constructor Summary
Packetizer()
           
 
Method Summary
 Object[] getControls()
           
protected  javax.media.Format[] getMatchingOutputFormats(javax.media.Format in)
           
 void open()
           
 void setPacketSize(int newPacketSize)
           
 
Methods inherited from class com.ibm.media.codec.audio.AudioPacketizer
process, reset
 
Methods inherited from class com.ibm.media.codec.audio.AudioCodec
checkFormat, getInputFormat, getName, getOutputFormat, getSupportedInputFormats, getSupportedOutputFormats, setInputFormat, setOutputFormat
 
Methods inherited from class com.sun.media.BasicCodec
checkEOM, checkInputBuffer, close, getArrayElementSize, isEOM, processAtEOM, propagateEOM, updateOutput, updateRGBFormat
 
Methods inherited from class com.sun.media.BasicPlugIn
error, getClassForName, getControl, getInputData, getNativeData, getOutputData, matches, plugInExists, validateByteArraySize, validateData, validateIntArraySize, validateShortArraySize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.media.Controls
getControl
 

Constructor Detail

Packetizer

public Packetizer()
Method Detail

getMatchingOutputFormats

protected javax.media.Format[] getMatchingOutputFormats(javax.media.Format in)
Overrides:
getMatchingOutputFormats in class com.ibm.media.codec.audio.AudioCodec

open

public void open()
          throws javax.media.ResourceUnavailableException
Specified by:
open in interface javax.media.PlugIn
Overrides:
open in class com.sun.media.BasicCodec
Throws:
javax.media.ResourceUnavailableException

getControls

public Object[] getControls()
Specified by:
getControls in interface javax.media.Controls
Overrides:
getControls in class com.sun.media.BasicPlugIn

setPacketSize

public void setPacketSize(int newPacketSize)

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.